Skip to content

Instantly share code, notes, and snippets.

@conanak99
Created January 17, 2017 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conanak99/0b439652ae0a6ea56261906092d423d0 to your computer and use it in GitHub Desktop.
Save conanak99/0b439652ae0a6ea56261906092d423d0 to your computer and use it in GitHub Desktop.
// 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