Spaces:
Build error
Build error
Claude commited on
fix(backend): add response_model=None to SPA catch-all (FastAPI union type error)
Browse files- backend/app/main.py +1 -1
backend/app/main.py
CHANGED
|
@@ -66,7 +66,7 @@ app.include_router(models_api.router, prefix=_V1_PREFIX)
|
|
| 66 |
_STATIC_DIR = Path("/app/static")
|
| 67 |
|
| 68 |
|
| 69 |
-
@app.get("/{full_path:path}", include_in_schema=False)
|
| 70 |
async def serve_frontend(full_path: str) -> FileResponse | RedirectResponse:
|
| 71 |
"""En production sert le frontend React (SPA). En dev redirige vers /docs."""
|
| 72 |
if _STATIC_DIR.is_dir():
|
|
|
|
| 66 |
_STATIC_DIR = Path("/app/static")
|
| 67 |
|
| 68 |
|
| 69 |
+
@app.get("/{full_path:path}", include_in_schema=False, response_model=None)
|
| 70 |
async def serve_frontend(full_path: str) -> FileResponse | RedirectResponse:
|
| 71 |
"""En production sert le frontend React (SPA). En dev redirige vers /docs."""
|
| 72 |
if _STATIC_DIR.is_dir():
|