smileos
Deploy website / deploy (push) Successful in 39s

This commit is contained in:
2026-03-04 21:32:30 +00:00
parent 885d2559af
commit 3afab4c7fa
33 changed files with 370 additions and 27 deletions
+10 -3
View File
@@ -1,5 +1,5 @@
# IMPORTS
from flask import Flask, render_template
from flask import Flask, render_template, request
from os import getenv as env
import logging
@@ -7,8 +7,10 @@ try:
import src.dynamic_routes as dynamic_routes
import src.errors as errors
import src.pg_log as pg_log
from src.name import get_name
except ImportError:
import dynamic_routes, errors, pg_log
from name import get_name
from dotenv import load_dotenv
load_dotenv()
@@ -60,11 +62,16 @@ log.info("Blueprints registered.")
# ROUTES
@app.route("/")
def index():
return render_template("index.html")
return render_template("index.html", name=get_name(request))
@app.route("/toaster")
def toaster():
return render_template("toaster.html")
return render_template("toaster.html", name=get_name(request))
@app.route("/terminal")
def terminal():
return render_template("terminal.html", name=get_name(request))
# DEBUG (DONT RUN LIKE THIS IN PROD)