ALI7ADEL commited on
Commit
a2a8ba3
·
verified ·
1 Parent(s): a754844

Update src/api/main.py

Browse files
Files changed (1) hide show
  1. src/api/main.py +5 -1
src/api/main.py CHANGED
@@ -69,6 +69,10 @@ app.include_router(auth_router)
69
  app.include_router(notes_router)
70
 
71
 
 
 
 
 
72
  @app.get("/health")
73
  async def health_check():
74
  import socket
@@ -228,4 +232,4 @@ async def process_video_and_save(
228
  async def get_task_status(task_id: str):
229
  if task_id not in tasks:
230
  raise HTTPException(status_code=404, detail="Task not found")
231
- return tasks[task_id]
 
69
  app.include_router(notes_router)
70
 
71
 
72
+ @app.get("/")
73
+ def read_root():
74
+ return {"message": "Welcome to YouTube Study Notes AI! The server is running perfectly."}
75
+
76
  @app.get("/health")
77
  async def health_check():
78
  import socket
 
232
  async def get_task_status(task_id: str):
233
  if task_id not in tasks:
234
  raise HTTPException(status_code=404, detail="Task not found")
235
+ return tasks[task_id]