Initial commit
This commit is contained in:
commit
376a7a9fe5
71 changed files with 2326 additions and 0 deletions
25
src/api.py
Normal file
25
src/api.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"""
|
||||
This module hooks the routers for the main endpoints into a single router for importing to the app.
|
||||
"""
|
||||
from fastapi import APIRouter
|
||||
|
||||
from src.auth.router import router as auth_router
|
||||
from src.contact.router import router as contact_router
|
||||
from src.organisation.router import router as organisation_router
|
||||
from src.user.router import router as user_router
|
||||
from src.admin.router import router as admin_router
|
||||
|
||||
|
||||
api_router = APIRouter()
|
||||
|
||||
api_router.include_router(auth_router)
|
||||
api_router.include_router(contact_router)
|
||||
api_router.include_router(organisation_router)
|
||||
api_router.include_router(user_router)
|
||||
api_router.include_router(admin_router)
|
||||
|
||||
|
||||
@api_router.get("/healthcheck", include_in_schema=False)
|
||||
def healthcheck():
|
||||
"""Simple healthcheck endpoint."""
|
||||
return {"status": "ok"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue