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

23
static_routes.py Normal file
View File

@@ -0,0 +1,23 @@
from flask import Blueprint, redirect, render_template, url_for, request
blueprint = Blueprint('static', __name__)
@blueprint.route('/about')
def about():
return render_template('pages/about.html')
@blueprint.route('/terms_of_service')
def tos():
return render_template('static/tos.html')
@blueprint.route('/privacy')
def privacy():
return render_template('static/privacy.html')
@blueprint.route('/license')
def license():
return render_template('static/license.html')