Karlo Pintaric
commited on
Commit
·
9082d6c
1
Parent(s):
841b9b8
Update src/api/main.py
Browse files- src/api/main.py +3 -4
src/api/main.py
CHANGED
@@ -104,10 +104,9 @@ def handle_exceptions(request, ex):
|
|
104 |
return JSONResponse(content={"error": "Internal Server Error", "detail": str(ex)}, status_code=500)
|
105 |
|
106 |
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
# return {"message": "Welcome to my API. Go to /docs to view the documentation."}
|
111 |
|
112 |
|
113 |
@app.get("/health-check")
|
|
|
104 |
return JSONResponse(content={"error": "Internal Server Error", "detail": str(ex)}, status_code=500)
|
105 |
|
106 |
|
107 |
+
@app.get("/")
|
108 |
+
def docs_redirect():
|
109 |
+
return RedirectResponse(url='/docs')
|
|
|
110 |
|
111 |
|
112 |
@app.get("/health-check")
|