Move highly-static routes in separate blueprint

This commit is contained in:
Xevion
2022-03-29 23:34:31 -05:00
parent cf8a754caf
commit 6b4d5acfb9
5 changed files with 31 additions and 24 deletions

3
app.py
View File

@@ -51,6 +51,9 @@ def create_app():
from route_forms import blueprint as forms_blueprint
app.register_blueprint(forms_blueprint)
from static_routes import blueprint as static_blueprint
app.register_blueprint(static_blueprint)
@app.errorhandler(404)
def page_not_found(e):
# note that we set the 404 status explicitly