Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Jan 3, 2024
1 parent f03613c commit bb5c1f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flask_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
from flask_app.forms import MenorahSetupForm
from flask_app.helpers import generate_settings_json

app = Flask(__name__)
app = Flask(__name__, subdomain_matching=True)

with open("/etc/config.json", encoding="utf-8") as jsonfile:
config = json.load(jsonfile)

app.config["WTF_CSRF_ENABLED"] = False
app.config["SERVER_NAME"] = "tekktrik.dev:5000"

bootstrap = Bootstrap5(app)

Expand Down Expand Up @@ -68,3 +69,9 @@ def project_menorah_settings():
file_bytesio, as_attachment=True, download_name="settings.json"
)
return render_template("projects/menorah/settings.html", input_form=input_form)


@app.route("/test", subdomain="menorah")
def test_route():
"""Test route"""
return "<h1>Test!</h1>"

0 comments on commit bb5c1f7

Please sign in to comment.