Add modules: api, operations, routes with org display
This commit is contained in:
+8
-6
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user