INNER CODE UNIT · Python
create_app
grillazz/fastapi-sqlalchemy-asyncpg · app/main.py:64
def create_app() -> FastAPI:
app = FastAPI(
title="Stuff And Nonsense API",
version="1.22.0",
lifespan=lifespan,
middleware=middleware,
)
app.include_router(stuff_router)
app.include_router(nonsense_router)
app.include_router(shakespeare_router)
app.include_router(user_router)
app.include_router(ml_router, prefix="/v1/ml", tags=["ML"])
app.include_router(chat_ws_router, prefix="/v1/chat", tags=["Chat"])
app.include_router(
health_router, prefix="/v1/public/health", tags=["Health, Public"]
)
app.include_router(
health_router,