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

View File

@@ -19,11 +19,6 @@ def index(): # put application's code here
return render_template('layouts/index.html', new_users=users, stats=stats)
@blueprint.route('/about')
def about():
return render_template('pages/about.html')
@blueprint.route('/users')
def browse():
users = User.query.all()
@@ -87,20 +82,6 @@ def edit_user(username: str):
form.process(obj=user)
return render_template('pages/user_edit.html', form=form)
@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')
# @blueprint.route('/blogs')
# def blogs():
# return render_template('pages/blogs.html')