Add modules: api, operations, routes with org display

This commit is contained in:
2026-07-23 11:28:11 +04:00
parent 5c16e75b0a
commit 51f4508c1d
6 changed files with 86 additions and 9 deletions
+8 -6
View File
@@ -1,11 +1,13 @@
from flask import Flask, render_template
import os
from flask import Flask
from routes.main import bp as main_bp
app = Flask(__name__, template_folder="templates", static_folder="static")
@app.route("/")
def index():
return render_template("index.html")
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc")
app.config["NUBES_API_TOKEN"] = os.getenv("NUBES_API_TOKEN", "")
app.register_blueprint(main_bp)
if __name__ == "__main__":