2025-05-23 09:35:29 +00:00

21 lines
566 B
Python

from fastapi import FastAPI
from app.api.api import api_router
from app.core.config import settings
def create_app() -> FastAPI:
app = FastAPI(
title=settings.PROJECT_NAME,
description=settings.PROJECT_DESCRIPTION,
version=settings.VERSION,
openapi_url=f"{settings.API_V1_STR}/openapi.json",
docs_url="/docs",
redoc_url="/redoc",
)
app.include_router(api_router, prefix=settings.API_V1_STR)
@app.get("/health", tags=["Health"])
def health_check():
return {"status": "ok"}
return app