mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
Extract user profile route into its own file
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
@@ -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():
|
||||
|
||||
7
app/main/views/user_profile.py
Normal file
7
app/main/views/user_profile.py
Normal 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')
|
||||
Reference in New Issue
Block a user