Browse Source

修改默认返回

xueyiming 6 months ago
parent
commit
8fa9b563e2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app.py

+ 2 - 2
app.py

@@ -17,8 +17,8 @@ def create_app():
     init_app()
 
     @app.route('/')
-    def hello_world():  # put application's code here
-        return 'Hello World!'
+    def index():  # put application's code here
+        return 'OK'
 
     @app.route('/recognize/url', methods=['POST'])
     def recognize_url():