|
@@ -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"}))
|
|
|
+
|
|
|
|