StartFromBegining

This commit is contained in:
2024-03-31 00:58:43 +03:00
parent 08e6aa5cb1
commit b733a6bf9a
24 changed files with 43 additions and 296 deletions

View File

@@ -0,0 +1,3 @@
from .main import app_factory
__all__ = ("app_factory",)

9
api/app_builder/main.py Normal file
View File

@@ -0,0 +1,9 @@
from fastapi import FastAPI
from .routers import init_routers
def app_factory() -> FastAPI:
app = FastAPI()
init_routers(app)
return app

View File

@@ -0,0 +1,7 @@
from fastapi import FastAPI
from api.presentation.routers import healthcheck_router
def init_routers(app: FastAPI) -> None:
app.include_router(healthcheck_router)