From c6a8d7c8048fc0ad7b4f303a5b9672b09c35386b Mon Sep 17 00:00:00 2001 From: icysanta Date: Mon, 1 Dec 2025 11:42:36 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=81=D0=BD=D0=BE=D0=B2=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D1=82=D0=BE=D1=87=D0=BA=D0=B0=20=D0=B2=D1=85=D0=BE?= =?UTF-8?q?=D0=B4=D0=B0=20backend=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()