Ali2206 commited on
Commit
c8ee813
·
1 Parent(s): 70cbf2c

Fix AIAutomation router conflict and remove manual invoice route

Browse files
Files changed (2) hide show
  1. AIAutomation/app/main.py +1 -1
  2. server.py +1 -4
AIAutomation/app/main.py CHANGED
@@ -211,6 +211,6 @@ async def extract(file: UploadFile = File(...), api_key: Optional[str] = Form(No
211
  raise HTTPException(status_code=502, detail=f"Extractor error: {exc}")
212
 
213
 
214
- app.include_router(router)
215
 
216
 
 
211
  raise HTTPException(status_code=502, detail=f"Extractor error: {exc}")
212
 
213
 
214
+ # Router is exported for inclusion in main server
215
 
216
 
server.py CHANGED
@@ -158,10 +158,7 @@ def triage_index() -> FileResponse:
158
  base = ROOT_DIR / "AIHealthcare" / "app" / "static" / "index.html"
159
  return FileResponse(base.as_posix())
160
 
161
- @app.get("/invoice")
162
- def invoice_index() -> FileResponse:
163
- base = ROOT_DIR / "AIAutomation" / "app" / "static" / "index.html"
164
- return FileResponse(base.as_posix())
165
 
166
  # These routes are now handled by their respective routers
167
 
 
158
  base = ROOT_DIR / "AIHealthcare" / "app" / "static" / "index.html"
159
  return FileResponse(base.as_posix())
160
 
161
+ # Invoice route is now handled by the AIAutomation router
 
 
 
162
 
163
  # These routes are now handled by their respective routers
164