feat(forums): add forum topics client service

This commit is contained in:
OldHawk
2017-07-06 17:25:05 +08:00
parent be90e55863
commit fd4723affd

View File

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