Spaces:
Running
Running
Update api.py
Browse files
api.py
CHANGED
|
@@ -9,7 +9,7 @@ import io
|
|
| 9 |
app = FastAPI()
|
| 10 |
app.router.redirect_slashes = False
|
| 11 |
|
| 12 |
-
@app.
|
| 13 |
async def index(request: Request):
|
| 14 |
return JSONResponse({
|
| 15 |
"status": "ok",
|
|
|
|
| 9 |
app = FastAPI()
|
| 10 |
app.router.redirect_slashes = False
|
| 11 |
|
| 12 |
+
@app.api_route("/", methods=["GET", "HEAD"])
|
| 13 |
async def index(request: Request):
|
| 14 |
return JSONResponse({
|
| 15 |
"status": "ok",
|