Initial: Flask app with Nubes design, org display

This commit is contained in:
2026-07-23 09:39:47 +04:00
commit e752905e02
16 changed files with 401 additions and 0 deletions
View File
+18
View File
@@ -0,0 +1,18 @@
"""Главная страница — blueprint."""
from flask import Blueprint, current_app, render_template
from app.api.http_client import HttpClient
from app.operations.get_instances import get_organization
bp = Blueprint("main", __name__)
@bp.route("/")
def index():
client = HttpClient(
current_app.config["NUBES_API_ENDPOINT"],
current_app.config["NUBES_API_TOKEN"],
)
org = get_organization(client)
return render_template("index.html", organization=org)