feat(forums): add forums client service

This commit is contained in:
OldHawk
2017-07-03 17:26:43 +08:00
parent da6379ab37
commit a45cf092e0

View File

@@ -0,0 +1,19 @@
(function () {
'use strict';
angular
.module('forums.services')
.factory('ForumsService', ForumsService);
ForumsService.$inject = ['$resource'];
function ForumsService($resource) {
return $resource('/api/forums/:forumId', {
forumId: '@_Id'
}, {
update: {
method: 'PUT'
}
});
}
}());