Skip to content

Commit

Permalink
update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BhardwajArjit committed Sep 6, 2024
1 parent e806402 commit a26df1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def analyze_code(java_code):

return results

@app.get("/")
async def root():
return {"message": "API is running. Use POST /analyze to analyze code."}

@app.post("/analyze")
async def analyze(request: CodeRequest):
try:
Expand Down

0 comments on commit a26df1d

Please sign in to comment.