mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-06 13:16:20 -06:00
Move highly-static routes in separate blueprint
This commit is contained in:
23
static_routes.py
Normal file
23
static_routes.py
Normal 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')
|
||||
Reference in New Issue
Block a user