ck 4 years ago
parent
commit
1b948fc629
1 changed files with 3 additions and 1 deletions
  1. 3 1
      handlers/ApiHandler.py

+ 3 - 1
handlers/ApiHandler.py

@@ -1,6 +1,6 @@
 from handlers.HandlerBase import BaseHandler
 from model.DataBaseUtils import MysqlUtils
-
+import json
 
 class ApiHandler(BaseHandler,MysqlUtils):
 
@@ -9,4 +9,6 @@ class ApiHandler(BaseHandler,MysqlUtils):
         path=self.get_args()["path"]
         print(path)
         self.quchen_text.execute(f"replace into yangguang_path (path) values ('{path}')")
+        self.write(json.dumps({"code":200,"msg":"ok"}))
+