Remove root GET endpoint
Browse filesCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main.py
CHANGED
|
@@ -2,11 +2,6 @@ from fastapi import FastAPI
|
|
| 2 |
|
| 3 |
app = FastAPI(title="ZHSAPI")
|
| 4 |
|
| 5 |
-
@app.get("/")
|
| 6 |
-
def root():
|
| 7 |
-
from fastapi.responses import RedirectResponse
|
| 8 |
-
return RedirectResponse(url="/docs")
|
| 9 |
-
|
| 10 |
@app.get("/health")
|
| 11 |
def health():
|
| 12 |
return {"status": "ok"}
|
|
|
|
| 2 |
|
| 3 |
app = FastAPI(title="ZHSAPI")
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
@app.get("/health")
|
| 6 |
def health():
|
| 7 |
return {"status": "ok"}
|