21 lines
544 B
Python
21 lines
544 B
Python
|
""" The user controller to manage all of the user related endpoints
|
||
|
in the web app
|
||
|
"""
|
||
|
from flask import Blueprint
|
||
|
|
||
|
# from flask import render_template
|
||
|
|
||
|
# Blueprint to append user endpoints to
|
||
|
blueprint = Blueprint("admin", __name__, url_prefix="/admin")
|
||
|
|
||
|
|
||
|
@blueprint.route('/')
|
||
|
def main_admin():
|
||
|
""" Function responsible for delivering the admin page for the site """
|
||
|
return "Hello, World"
|
||
|
|
||
|
|
||
|
@blueprint.route('/users/')
|
||
|
def admin_users():
|
||
|
""" Endpoint responsible for managing a users permissions """
|
||
|
return "Hello, Worlds"
|