- updated styles
- added edit functionality
This commit is contained in:
Luke Vella 2015-01-12 12:09:00 +01:00
parent 2630cc237a
commit b72dfc474e
21 changed files with 136 additions and 52 deletions

View file

@ -23,7 +23,9 @@ angular.module('rallly', ['ui.router','ngResource','ngFx'])
})
})
.factory('Event', function($resource){
return $resource('/api/event/:id', { id : '@_id' });
return $resource('/api/event/:id', { id : '@_id' }, {
'update' : { method : 'PUT' }
});
})
.factory('Participant', function($resource){
return $resource('/api/event/:id/participant/:pid', { id: '@_id', pid : '@pid'});