Skip to content

Commit 94cac70

Browse files
committed
renamed stats to info
1 parent c7f692c commit 94cac70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,10 @@ def process_list_commits():
330330
return jsonify(response), 200
331331

332332

333-
@app.route('/repo_stats', methods=['POST'])
334-
def repo_stats():
333+
@app.route('/repo_info', methods=['POST'])
334+
def repo_info():
335335
"""
336-
Endpoint to retrieve statistics about a specific repository.
336+
Endpoint to retrieve information about a specific repository.
337337
338338
Expected JSON payload:
339339
{
@@ -343,7 +343,7 @@ def repo_stats():
343343
Returns:
344344
JSON: A response containing the status and graph statistics (node and edge counts).
345345
- 'status': 'success' if successful, or an error message.
346-
- 'stats': A dictionary with the node and edge counts if the request is successful.
346+
- 'info': A dictionary with the node and edge counts if the request is successful.
347347
"""
348348

349349
# Get JSON data from the request
@@ -363,7 +363,7 @@ def repo_stats():
363363
# Create a response
364364
response = {
365365
'status': 'success',
366-
'stats': stats
366+
'info': stats
367367
}
368368

369369
return jsonify(response), 200

0 commit comments

Comments
 (0)