tech5 commited on
Commit
d23147d
·
1 Parent(s): 93dbc5f

Copied GitHub project to Hugging Face Space

Browse files
Files changed (1) hide show
  1. backend/api/main.py +4 -0
backend/api/main.py CHANGED
@@ -18,6 +18,10 @@ app.add_middleware(
18
  allow_headers=["*"],
19
  )
20
 
 
 
 
 
21
  # PDF Upload endpoint
22
  @app.post("/upload/")
23
  async def upload_pdfs(user_id: str = Form(...), files: List[UploadFile] = File(...)):
 
18
  allow_headers=["*"],
19
  )
20
 
21
+ @app.get("/")
22
+ async def root():
23
+ return {"message": "FastAPI backend is running!"}
24
+
25
  # PDF Upload endpoint
26
  @app.post("/upload/")
27
  async def upload_pdfs(user_id: str = Form(...), files: List[UploadFile] = File(...)):