Spaces:
Sleeping
Sleeping
Download api/__init__.py from RocketFarmStudios/CPS-API: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/RocketFarmStudios/CPS-API/resolve/e307dc52ffbd335bf6bfc160fb9cdb0b4dcfa885/api/__init__.py
- Command line
-
hf download hf://spaces/RocketFarmStudios/CPS-API@e307dc52ffbd335bf6bfc160fb9cdb0b4dcfa885/api/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/RocketFarmStudios/CPS-API/resolve/e307dc52ffbd335bf6bfc160fb9cdb0b4dcfa885/api/__init__.py
561 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.router, prefix="/auth", tags=["auth"]) | |
| router.include_router(patients.router, prefix="/ehr", tags=["patients"]) | |
| router.include_router(pdf.router, prefix="/ehr/patients", tags=["pdf"]) | |
| return router | |
| # Export the router | |
| api_router = get_router() |