StartFromBegining
This commit is contained in:
3
api/app_builder/__init__.py
Normal file
3
api/app_builder/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from .main import app_factory
|
||||
|
||||
__all__ = ("app_factory",)
|
9
api/app_builder/main.py
Normal file
9
api/app_builder/main.py
Normal 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
|
7
api/app_builder/routers.py
Normal file
7
api/app_builder/routers.py
Normal 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)
|
Reference in New Issue
Block a user