sushilideaclan01's picture
refactored the files
d4a4da7
"""
API routers - each module handles a logical group of endpoints.
"""
from fastapi import APIRouter
from .info import router as info_router
from .auth import router as auth_router
from .generate import router as generate_router
from .trends import router as trends_router
from .correction import router as correction_router
from .matrix import router as matrix_router
from .motivator import router as motivator_router
from .extensive import router as extensive_router
from .creative import router as creative_router
from .database import router as database_router
from .export import router as export_router
def get_all_routers() -> list[APIRouter]:
"""Return all routers in the order they should be registered."""
return [
info_router,
auth_router,
generate_router,
trends_router,
correction_router,
matrix_router,
motivator_router,
extensive_router,
creative_router,
database_router,
export_router,
]