blob: ba62f00c589e98fccd367a58952e36b0264bc4a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from flask import Blueprint
from hierarchy import auth_required
test = Blueprint('test_endpoint', __name__)
@test.route('/test')
@auth_required("user")
def index():
return "Hello World!"
dynamic_route = ["/", test]
|