mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-07 15:09:23 +01:00
Update the articles module to implement the style guidelines. Much of this work is from @trainerbill Closes #874 Closes #339
20 lines
357 B
JavaScript
20 lines
357 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('articles.services')
|
|
.factory('ArticlesService', ArticlesService);
|
|
|
|
ArticlesService.$inject = ['$resource'];
|
|
|
|
function ArticlesService($resource) {
|
|
return $resource('api/articles/:articleId', {
|
|
articleId: '@_id'
|
|
}, {
|
|
update: {
|
|
method: 'PUT'
|
|
}
|
|
});
|
|
}
|
|
})();
|