Strip to minimal: single route, static HTML, no logic

This commit is contained in:
2026-07-23 11:10:33 +04:00
parent 420d09e6b5
commit 6cb8c05f05
9 changed files with 21 additions and 141 deletions
-23
View File
@@ -1,23 +0,0 @@
"""Главная страница — blueprint."""
from flask import Blueprint, current_app, render_template
from api.http_client import HttpClient
from operations.get_instances import get_organization
bp = Blueprint("main", __name__)
@bp.route("/")
def index():
org = None
error = None
try:
client = HttpClient(
current_app.config["NUBES_API_ENDPOINT"],
current_app.config["NUBES_API_TOKEN"],
)
org = get_organization(client)
except Exception as e:
error = str(e)
return render_template("index.html", organization=org, error=error)