Spaces:
Sleeping
Sleeping
Download api/__init__.py from RocketFarmStudios/CPS-API: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/spaces/RocketFarmStudios/CPS-API/resolve/97e2e8fa18770ccc046ebfe580a0a8d66522b279/api/__init__.py
- Command line
-
hf download hf://spaces/RocketFarmStudios/CPS-API@97e2e8fa18770ccc046ebfe580a0a8d66522b279/api/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/RocketFarmStudios/CPS-API/resolve/97e2e8fa18770ccc046ebfe580a0a8d66522b279/api/__init__.py
612 Bytes
| from fastapi import APIRouter | |
| def get_router(): | |
| router = APIRouter() | |
| # Import sub-modules from the routes directory | |
| from .routes.auth import auth | |
| from .routes.patients import patients | |
| from .routes.pdf import pdf | |
| # Include sub-routers | |
| router.include_router(auth, prefix="/auth", tags=["auth"]) # Use 'auth' directly | |
| router.include_router(patients, prefix="/ehr", tags=["patients"]) # Use 'patients' directly | |
| router.include_router(pdf, prefix="/ehr/patients", tags=["pdf"]) # Use 'pdf' directly | |
| return router | |
| # Export the router | |
| api_router = get_router() |