A bunch of work getting blueprints working

This commit is contained in:
Bradley committed 2025-10-26 19:21:00 -04:00
1 parent 223a105be4
commit d59e23fc4c
9 files changed
+47 -12

No files matched your search

+4 -8
View File
@@ -1,14 +1,10 @@
from flask import Flask
from jinja2 import Template
from blueprints.home.home import home_bp
from blueprints.upload_photo.upload_photo import upload_photo_bp
app = Flask(__name__)
app.register_blueprint(home_bp)
app.register_blueprint(upload_photo_bp)
@app.route("/")
def root_route():
with open("./pages/home/resources/home.html", "r") as html_file:
template = Template(html_file.read())
return template.render({}), 200
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=2025)