routes
tit.server.routes ¶
Route modules of tit.server.
Every module in this package is discovered automatically (no edits to app.py needed when a
new module is added). A module may expose:
router— anAPIRoutermounted behind authentication (every/api/*route);ws_router— anAPIRouterwith WebSocket endpoints that authorise inside the handshake (seetit.server.ws.websocket_authorized); mounted without the auth dependency.
health is the only module mounted without authentication on purpose.
iter_route_modules ¶
iter_route_modules() -> list[ModuleType]
Import and return every route module in this package, sorted by name.