Files
home-automation-backend/app/main.py

19 lines
396 B
Python
Raw Permalink Normal View History

2026-01-10 13:22:02 +00:00
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()