From 716aaef4d089cb4dc55c6fd1be0d0ff9cd9fbf2b Mon Sep 17 00:00:00 2001 From: host Date: Sun, 9 Aug 2026 14:31:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=BA=D0=BB=D1=8E=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20routers=20=D1=88=D0=B0=D0=B1=D0=BB=D0=BE?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=20=D0=B8=20=D0=B8=D0=BD=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index 0d13a9f..54e0b92 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -7,7 +7,7 @@ from sqlalchemy import create_engine, text from . import models from .config import settings from .database import Base, engine -from .routers import admin, auth +from .routers import admin, auth, instances, templates logging.basicConfig( level=logging.INFO, @@ -17,7 +17,7 @@ logger = logging.getLogger(__name__) app = FastAPI( title="Proxmox VPS Panel Secure", - version="1.1.0", + version="1.2.0", ) origins = [item.strip() for item in settings.allow_origins.split(",") if item.strip()] @@ -32,11 +32,12 @@ app.add_middleware( allow_headers=["Authorization", "Content-Type"], ) -# Временное создание базовых таблиц до добавления Alembic-миграций. -# После появления миграций этот вызов должен быть удалён. +# Временное создание таблиц до добавления Alembic-миграций. Base.metadata.create_all(bind=engine) app.include_router(auth.router) app.include_router(admin.router) +app.include_router(templates.router) +app.include_router(instances.router) @app.get("/health")