2024-03-31 00:58:43 +03:00
|
|
|
from fastapi import FastAPI
|
|
|
|
|
2024-03-31 04:18:41 +03:00
|
|
|
from api.app_builder.dependencies import init_dependencies
|
|
|
|
|
2024-03-31 00:58:43 +03:00
|
|
|
from .routers import init_routers
|
|
|
|
|
|
|
|
|
|
|
|
def app_factory() -> FastAPI:
|
|
|
|
app = FastAPI()
|
2024-03-31 04:18:41 +03:00
|
|
|
init_dependencies(app)
|
2024-03-31 00:58:43 +03:00
|
|
|
init_routers(app)
|
2024-03-31 04:18:41 +03:00
|
|
|
|
2024-03-31 00:58:43 +03:00
|
|
|
return app
|