Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,4 +88,8 @@ async def serve_react_app(full_path: str):
|
|
| 88 |
# Don't serve React for API routes
|
| 89 |
if full_path.startswith("api/") or full_path in ["health", "tables", "docs", "redoc"]:
|
| 90 |
raise HTTPException(status_code=404, detail="Not found")
|
| 91 |
-
return FileResponse('dist/index.html')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
# Don't serve React for API routes
|
| 89 |
if full_path.startswith("api/") or full_path in ["health", "tables", "docs", "redoc"]:
|
| 90 |
raise HTTPException(status_code=404, detail="Not found")
|
| 91 |
+
return FileResponse('dist/index.html')
|
| 92 |
+
|
| 93 |
+
if __name__ == "__main__":
|
| 94 |
+
import uvicorn
|
| 95 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|