BlogPostsFactory.$inject = ['$resource'];
function BlogPostsFactory($resource){
  return $resource('/api/v1/posts/:postId');
}

angular.module('blog.posts.service', [
  'ngResource'
]).factory('Posts', BlogPostsFactory);

BlogPostsFactory.$inject = ['$resource'];
function BlogPostsFactory($resource){
  return $resource('/api/v1/posts/:postId', {postId: '@id'});
}

angular.module('blog.posts.service', [
  'ngResource'
]).factory('Posts', BlogPostsFactory);

Allow saving with the posts.
Allow saving with the posts.
