Antigravity AI commited on
Commit
f178ad2
·
1 Parent(s): 216da3b

UI: Enable frontend serving at root by removing API root route

Browse files
Files changed (1) hide show
  1. 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
- @app.get("/", tags=["Health"])
64
- def root():
 
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,