Skip to content

Commit 32a9c94

Browse files
committed
remove process_repo and print
1 parent 002385a commit 32a9c94

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

api/index.py

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -173,42 +173,6 @@ def auto_complete():
173173

174174
return jsonify(response), 200
175175

176-
@app.route('/process_repo', methods=['POST'])
177-
@token_required # Apply token authentication decorator
178-
def process_repo():
179-
"""
180-
Process a GitHub repository.
181-
182-
Expected JSON payload:
183-
{
184-
"repo_url": "string",
185-
"ignore": ["string"] # optional
186-
}
187-
188-
Returns:
189-
JSON response with processing status
190-
"""
191-
192-
data = request.get_json()
193-
url = data.get('repo_url')
194-
if url is None:
195-
return jsonify({'status': f'Missing mandatory parameter "url"'}), 400
196-
logger.debug(f'Received repo_url: {url}')
197-
198-
ignore = data.get('ignore', [])
199-
200-
proj = Project.from_git_repository(url)
201-
proj.analyze_sources(ignore)
202-
# proj.process_git_history(ignore)
203-
204-
# Create a response
205-
response = {
206-
'status': 'success',
207-
}
208-
209-
return jsonify(response), 200
210-
211-
212176
@app.route('/list_repos', methods=['GET'])
213177
@token_required # Apply token authentication decorator
214178
def list_repos():
@@ -221,7 +185,7 @@ def list_repos():
221185

222186
# Fetch list of repositories
223187
repos = get_repos()
224-
print(repos)
188+
225189
# Create a success response with the list of repositories
226190
response = {
227191
'status': 'success',

0 commit comments

Comments
 (0)