Основная точка входа 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 приложения.
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user