Reorganize to fastapi template

This commit is contained in:
2026-01-10 13:22:02 +00:00
parent 7818a3fb44
commit 9f7db47528
41 changed files with 711 additions and 2415 deletions

18
app/main.py Normal file
View File

@@ -0,0 +1,18 @@
from fastapi import FastAPI
from app.api.health import router as health_router
from app.core.config import settings
def create_app() -> FastAPI:
app = FastAPI(title=settings.PROJECT_NAME)
app.include_router(health_router, prefix="/api")
@app.get("/")
async def root():
return {"message": "Welcome to the minimal FastAPI template"}
return app
app = create_app()