old_contents: function Resource($resource) {
    return $resource('/api/resources/:id');
  }
  
  Resource.$inject = ['$resource'];
  
  angular
    .module("CodePouch")
    .factory("Resource", Resource);
  
new_contents: function Resource($resource) {
    return $resource('/api/resources/:id',{
      id: '@id'
    });
  }
  
  Resource.$inject = ['$resource'];
  
  angular
    .module("CodePouch")
    .factory("Resource", Resource);
  
subject: update resource service to show the id