Merge "Add a subcontroller for Team projects"

This commit is contained in:
Zuul 2019-06-07 22:25:51 +00:00 committed by Gerrit Code Review
commit 7e955aa594
1 changed files with 7 additions and 2 deletions

View File

@ -36,7 +36,7 @@ angular.module('sb.services').factory('Team',
}
);
var usersSignature = {
var subresourceSignature = {
'create': {
method: 'PUT'
},
@ -55,7 +55,12 @@ angular.module('sb.services').factory('Team',
resource.UsersController = $resource(
storyboardApiBase + '/teams/:team_id/users',
{team_id: '@team_id'},
usersSignature);
subresourceSignature);
resource.ProjectsController = $resource(
storyboardApiBase + '/teams/:team_id/projects',
{team_id: '@team_id'},
subresourceSignature);
return resource;
});