Основная точка входа backend API
This commit is contained in:
@@ -9,6 +9,7 @@ from .routes.license_routes import router as license_router
|
||||
# Путь к корню проекта
|
||||
BASE_DIR = Path(__file__).resolve().parent
|
||||
|
||||
|
||||
def create_app() -> FastAPI:
|
||||
"""
|
||||
Создание и конфигурация FastAPI приложения.
|
||||
@@ -51,5 +52,6 @@ def create_app() -> FastAPI:
|
||||
|
||||
return apps
|
||||
|
||||
|
||||
# Экземпляр приложения
|
||||
app: FastAPI = create_app()
|
||||
|
||||
Reference in New Issue
Block a user