Files
iap1-labs/lab4/app/main_app.py
T
hellisabove 35893a4012 adaugat lab4 si lab5
Signed-off-by: hellisabove <robertnedela15@gmail.com>
2026-05-25 11:13:40 +03:00

16 lines
573 B
Python

# Imported symbols here please!
from flask import Flask, request, render_template, redirect, session
from .pages.index import index_pages
from .pages.auth import auth_pages
from .pages.iot_api import iot_api
# Initialize the Flask application
# Note: static folder means all files in there will be automatically offered over HTTP
app = Flask(__name__, static_folder="../public",
template_folder="../templates")
app.secret_key = "gxnMaYjinQ27DeBwgKsDyuDQO"
app.register_blueprint(index_pages)
app.register_blueprint(auth_pages)
app.register_blueprint(iot_api)