Previous template structure had direct handling of auth. This structure is designed to get auth from the hub instead.
21 lines
524 B
Python
21 lines
524 B
Python
"""
|
|
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._module_template.router import router as template_router
|
|
|
|
|
|
api_router = APIRouter(
|
|
prefix="/api/v1"
|
|
)
|
|
|
|
api_router.include_router(auth_router)
|
|
api_router.include_router(template_router)
|
|
|
|
|
|
@api_router.get("/healthcheck", include_in_schema=False)
|
|
def healthcheck():
|
|
"""Simple health check endpoint."""
|
|
return {"status": "ok"}
|