mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-22 00:49:23 -04:00
Extract user profile route into its own file
This commit is contained in:
@@ -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