Extract user profile route into its own file

This commit is contained in:
Chris Hill-Scott
2016-01-12 09:52:00 +00:00
parent 554f11961f
commit 10af2bccf7
4 changed files with 13 additions and 7 deletions

View File

@@ -4,5 +4,6 @@ main = Blueprint('main', __name__)
from app.main.views import (
index, sign_in, sign_out, register, two_factor, verify, sms, add_service,
code_not_received, jobs, dashboard, templates, service_settings, forgot_password, new_password, styleguide
code_not_received, jobs, dashboard, templates, service_settings, forgot_password,
new_password, styleguide, user_profile
)

View File

@@ -32,12 +32,6 @@ def checkemail():
return render_template('views/check-email.html')
@main.route("/user-profile")
@login_required
def userprofile():
return render_template('views/user-profile.html')
@main.route("/manage-users")
@login_required
def manageusers():

View File

@@ -0,0 +1,7 @@
from flask import render_template
from app.main import main
@main.route("/user-profile")
def userprofile():
return render_template('views/user-profile.html')