aboutsummaryrefslogtreecommitdiff
path: root/api/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'api/test.py')
-rw-r--r--api/test.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/test.py b/api/test.py
new file mode 100644
index 0000000..ba62f00
--- /dev/null
+++ b/api/test.py
@@ -0,0 +1,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]
+