service_man/api/app.py

15 lines
243 B
Python
Raw Normal View History

2024-03-04 07:12:29 +03:00
from fastapi import FastAPI
from api.di import Container
from api.router.user import router
def create_app() -> FastAPI:
app = FastAPI()
app.container = Container()
app.include_router(router)
return app
app = create_app()