ck пре 4 година
родитељ
комит
daedaf9ab0
1 измењених фајлова са 7 додато и 3 уклоњено
  1. 7 3
      handlers/ApiHandler.py

+ 7 - 3
handlers/ApiHandler.py

@@ -1,7 +1,11 @@
 from handlers.HandlerBase import BaseHandler
 from handlers.HandlerBase import BaseHandler
+from model.DataBaseUtils import MysqlUtils
 
 
-class ApiHandler(BaseHandler):
+
+class ApiHandler(BaseHandler,MysqlUtils):
 
 
     def post(self):
     def post(self):
-        # print(self.request.body)
-        pass
+        print(self.get_args())
+        path=self.get_args()["path"]
+        self.quchen_text.execute(f"replace into yangguang_path values ({path})")
+