This commit is contained in:
2024-11-19 15:17:56 +01:00
parent 0495bf8dbb
commit 5f7dde35bc
11 changed files with 763 additions and 2 deletions

View File

View File

@@ -0,0 +1,12 @@
from fastapi import FastAPI
from .views import routes
async def get_app() -> FastAPI:
app = FastAPI()
for route in routes:
app.include_router(route)
return app

View File

@@ -0,0 +1,11 @@
from fastapi import APIRouter
from .auth import auth_router
routes: list[APIRouter] = [
auth_router,
]
__all__ = ["routes"]

View File

@@ -0,0 +1,5 @@
from fastapi import APIRouter
auth_router = APIRouter()