File tree Expand file tree Collapse file tree 1 file changed +1
-37
lines changed Expand file tree Collapse file tree 1 file changed +1
-37
lines changed Original file line number Diff line number Diff line change @@ -173,42 +173,6 @@ def auto_complete():
173
173
174
174
return jsonify (response ), 200
175
175
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
-
212
176
@app .route ('/list_repos' , methods = ['GET' ])
213
177
@token_required # Apply token authentication decorator
214
178
def list_repos ():
@@ -221,7 +185,7 @@ def list_repos():
221
185
222
186
# Fetch list of repositories
223
187
repos = get_repos ()
224
- print ( repos )
188
+
225
189
# Create a success response with the list of repositories
226
190
response = {
227
191
'status' : 'success' ,
You can’t perform that action at this time.
0 commit comments