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