diff --git a/backend/main.py b/backend/main.py index 3797fb9..2252d4d 100644 --- a/backend/main.py +++ b/backend/main.py @@ -9,6 +9,7 @@ from .routes.license_routes import router as license_router # Путь к корню проекта BASE_DIR = Path(__file__).resolve().parent + def create_app() -> FastAPI: """ Создание и конфигурация FastAPI приложения. @@ -48,8 +49,9 @@ def create_app() -> FastAPI: """ index_file = BASE_DIR.parent / "frontend" / "templates" / "index.html" return FileResponse(index_file) - + return apps + # Экземпляр приложения app: FastAPI = create_app()