Merge "Add support for Story permission endpoints"
This commit is contained in:
commit
a5db2418ad
|
@ -46,10 +46,35 @@ angular.module('sb.services').factory('Story',
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var actorSignature = {
|
||||||
|
'create': {
|
||||||
|
method: 'PUT'
|
||||||
|
},
|
||||||
|
'get': {
|
||||||
|
method: 'GET',
|
||||||
|
isArray: true
|
||||||
|
},
|
||||||
|
'delete': {
|
||||||
|
method: 'DELETE',
|
||||||
|
transformRequest: function() {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
resource.TagsController = $resource(
|
resource.TagsController = $resource(
|
||||||
storyboardApiBase + '/stories/:id/tags', {id: '@id'},
|
storyboardApiBase + '/stories/:id/tags', {id: '@id'},
|
||||||
tags_signature);
|
tags_signature);
|
||||||
|
|
||||||
|
resource.UsersController = $resource(
|
||||||
|
storyboardApiBase + '/stories/:story_id/users',
|
||||||
|
{story_id: '@story_id'},
|
||||||
|
actorSignature);
|
||||||
|
resource.TeamsController = $resource(
|
||||||
|
storyboardApiBase + '/stories/:story_id/teams',
|
||||||
|
{story_id: '@story_id'},
|
||||||
|
actorSignature);
|
||||||
|
|
||||||
ResourceFactory.applySearch(
|
ResourceFactory.applySearch(
|
||||||
'Story',
|
'Story',
|
||||||
resource,
|
resource,
|
||||||
|
|
Loading…
Reference in New Issue