Created
January 17, 2017 06:35
-
-
Save conanak99/0b439652ae0a6ea56261906092d423d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code goes here | |
var app = angular.module('app', []); | |
app.factory('recognizeService', function($http) { | |
return { | |
recognize: function(imgLink) { | |
// Link tới RestAPI đã viết ở phần | |
var url = 'https://wt-huyhoang8a5-gmail-com-0.run.webtask.io/idol-recognize'; | |
return $http({ | |
method: 'POST', | |
url, | |
data: { | |
url: imgLink | |
} | |
}); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment