understanding commited on
Commit
01e7a0a
Β·
verified Β·
1 Parent(s): 24d0dae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -117,6 +117,15 @@ async def download_file(file_name: str):
117
 
118
  return FileResponse(file_path, media_type='video/mp4', filename=file_name)
119
 
 
 
 
 
 
 
 
 
 
120
  # --- Server Start ---
121
  @app.on_event("startup")
122
  async def startup_event():
 
117
 
118
  return FileResponse(file_path, media_type='video/mp4', filename=file_name)
119
 
120
+ #
121
+ # βœ…βœ…βœ… FIX IS HERE βœ…βœ…βœ…
122
+ #
123
+ @app.get("/")
124
+ async def health_check():
125
+ """ Health check endpoint to fix 404 errors in log. """
126
+ return {"status": "ok"}
127
+
128
+
129
  # --- Server Start ---
130
  @app.on_event("startup")
131
  async def startup_event():