Browse Source

框架搭建

zhangnaiwen 1 year ago
parent
commit
c37bf53b0c
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/app/helpers/request_handlers.py

+ 11 - 0
src/app/helpers/request_handlers.py

@@ -0,0 +1,11 @@
+from flask import request, g, jsonify
+
+
+def configure(app):
+    @app.before_request
+    def authenticate():
+        """
+        这里验证token
+        :return:
+        """
+        pass