Skip to content

Instantly share code, notes, and snippets.

@Insayt
Created November 24, 2015 19:08
Show Gist options
  • Save Insayt/576e2410e1ade79fd121 to your computer and use it in GitHub Desktop.
Save Insayt/576e2410e1ade79fd121 to your computer and use it in GitHub Desktop.
'use strict';
angular.module('Yeopen')
.service('$videoApi', ['$modal', '$rootScope', '$state', 'AbstractService', 'Routes',
function ($modal, $rootScope, $state, AbstractService, Routes) {
var videoApi = new AbstractService(Routes.gallery);
angular.extend(videoApi, {
create: function(data) {
var self = this;
return this.createMethod('create')(data).success(function(res) {
console.log(res);
});
}
});
return videoApi;
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment