Spaces:
Running
Running
Update status.py
Browse files
status.py
CHANGED
|
@@ -3,12 +3,6 @@ from fastapi import APIRouter, Response
|
|
| 3 |
from fastapi.responses import JSONResponse
|
| 4 |
|
| 5 |
router = APIRouter(prefix="/status")
|
| 6 |
-
router.add_middleware(
|
| 7 |
-
CORSMiddleware,
|
| 8 |
-
allow_origins=["*"],
|
| 9 |
-
allow_methods=["GET", "POST", "HEAD"],
|
| 10 |
-
allow_headers=["*"],
|
| 11 |
-
)
|
| 12 |
|
| 13 |
@router.head("/sfx")
|
| 14 |
async def head_sfx():
|
|
|
|
| 3 |
from fastapi.responses import JSONResponse
|
| 4 |
|
| 5 |
router = APIRouter(prefix="/status")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
@router.head("/sfx")
|
| 8 |
async def head_sfx():
|