Ali2206 commited on
Commit
0dcbb28
·
verified ·
1 Parent(s): d8b536c

Update api/__init__.py

Browse files
Files changed (1) hide show
  1. api/__init__.py +19 -0
api/__init__.py CHANGED
@@ -1 +1,20 @@
1
  # This makes this directory a Python package
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # This makes this directory a Python package
2
+ from fastapi import APIRouter
3
+
4
+ def get_router():
5
+ router = APIRouter()
6
+
7
+ # Import sub-modules
8
+ from .routes.auth import auth
9
+ from .routes.patients import patients
10
+ from .routes.pdf import pdf
11
+
12
+ # Include sub-routers
13
+ router.include_router(auth.router, prefix="/auth", tags=["auth"])
14
+ router.include_router(patients.router, prefix="/ehr", tags=["patients"])
15
+ router.include_router(pdf.router, prefix="/ehr/patients", tags=["pdf"])
16
+
17
+ return router
18
+
19
+ # Export the router
20
+ api_router = get_router()