Spaces:
Sleeping
Sleeping
Antigravity AI commited on
Commit ·
f178ad2
1
Parent(s): 216da3b
UI: Enable frontend serving at root by removing API root route
Browse files- backend/app/main.py +4 -2
backend/app/main.py
CHANGED
|
@@ -60,11 +60,13 @@ async def global_exception_handler(request: Request, exc: Exception):
|
|
| 60 |
)
|
| 61 |
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
|
|
|
| 65 |
return {"status": "ok", "service": "FaceVision AI Emotion Logger"}
|
| 66 |
|
| 67 |
|
|
|
|
| 68 |
@app.post("/api/logs", response_model=EmotionLogResponse, tags=["Logs"])
|
| 69 |
def create_emotion_log(
|
| 70 |
payload: EmotionLogCreate,
|
|
|
|
| 60 |
)
|
| 61 |
|
| 62 |
|
| 63 |
+
|
| 64 |
+
@app.get("/api/health", tags=["Health"])
|
| 65 |
+
def health():
|
| 66 |
return {"status": "ok", "service": "FaceVision AI Emotion Logger"}
|
| 67 |
|
| 68 |
|
| 69 |
+
|
| 70 |
@app.post("/api/logs", response_model=EmotionLogResponse, tags=["Logs"])
|
| 71 |
def create_emotion_log(
|
| 72 |
payload: EmotionLogCreate,
|