ProductQuery/app/__init__.py
2024-12-17 10:47:33 +01:00

13 lines
245 B
Python

# app/__init__.py
from app.config import get_config
from fastapi import FastAPI
def create_app(env_name: str) -> FastAPI:
config = get_config(env_name)
app = FastAPI(title="Code Challenge")
app.config = config
return app