Browse Source

complete api

huaisianhuang 3 years ago
parent
commit
6191efd69a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      html/static/script_util.js

+ 3 - 3
html/static/script_util.js

@@ -92,7 +92,7 @@ function prepareUpload(event) {
     processData: false, // important
     contentType: false, // important
     data: data,
-    url: '/uploadfile',
+    url: 'http://www.choozmo.com:8887/uploadfile',
     dataType: 'json',
     success: function (jsonData) {
       event.target.previousSibling.value = jsonData.msg;
@@ -202,7 +202,7 @@ $("#sendBTN").click(function () {
   console.log(dataOBJ)
   jwt_token =  get_jwt_token()
   var xhr = new XMLHttpRequest();
-  xhr.open("POST", "/make_anchor_video_long");
+  xhr.open("POST", "http://www.choozmo.com:8887/make_anchor_video_long");
   xhr.setRequestHeader("accept", "application/json");
   xhr.setRequestHeader("Authorization","Bearer "+jwt_token)
   xhr.setRequestHeader("Content-Type", "application/json");
@@ -273,7 +273,7 @@ $(".gen_avatar").click(function () {
   console.log(dataOBJ)
   //alert('資料已送出! 請耐心等候')
   $.ajax({
-    url: '/swapFace',
+    url: 'http://www.choozmo.com:8887/swapFace',
     dataType: 'json', // 預期從server接收的資料型態
     contentType: 'application/json; charset=utf-8', // 要送到server的資料型態
     type: 'post',