You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
299 B
15 lines
299 B
from flask import blueprints
|
|
from flask_api import status
|
|
|
|
from .. import access
|
|
|
|
bp = blueprints.Blueprint("admin", __name__)
|
|
|
|
|
|
@bp.route(
|
|
rule="/admin",
|
|
methods=["GET"],
|
|
)
|
|
@access.admin_permission.require(http_exception=status.HTTP_401_UNAUTHORIZED)
|
|
def admin():
|
|
return "success", 200
|
|
|