임연수

update .gitignore,

connect api with new key
1 node_modules/ 1 node_modules/
2 -.idea/
...\ No newline at end of file ...\ No newline at end of file
2 +.idea/
3 +package-lock.json
4 +uploads/mypic.jpg
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -26,13 +26,13 @@ ...@@ -26,13 +26,13 @@
26 // NOTE: You must use the same location in your REST call as you used to obtain your subscription keys. 26 // NOTE: You must use the same location in your REST call as you used to obtain your subscription keys.
27 // For example, if you obtained your subscription keys from westus, replace "westcentralus" in the 27 // For example, if you obtained your subscription keys from westus, replace "westcentralus" in the
28 // URL below with "westus". 28 // URL below with "westus".
29 - url: "https://westcentralus.api.cognitive.microsoft.com/face/v1.0/detect?" + $.param(params), 29 + url: "https://eastasia.api.cognitive.microsoft.com/face/v1.0/detect?" + $.param(params),
30 beforeSend: function(xhrObj){ 30 beforeSend: function(xhrObj){
31 // Request headers 31 // Request headers
32 xhrObj.setRequestHeader("Content-Type","application/json"); 32 xhrObj.setRequestHeader("Content-Type","application/json");
33 33
34 // NOTE: Replace the "Ocp-Apim-Subscription-Key" value with a valid subscription key. 34 // NOTE: Replace the "Ocp-Apim-Subscription-Key" value with a valid subscription key.
35 - xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","39716df1b81349fdabb0931c039eeaf2"); 35 + xhrObj.setRequestHeader("Ocp-Apim-Subscription-Key","61650f4a2941462ea2dba74eabefd114");
36 }, 36 },
37 type: "POST", 37 type: "POST",
38 38
......