mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 01:48:32 +02:00
New Features
- added notifications - added toggle switches - added delete feature - added email verification
This commit is contained in:
parent
e61ef151f6
commit
1b20a11bba
91 changed files with 6859 additions and 2756 deletions
|
@ -1,4 +1,4 @@
|
|||
angular.module('rallly', ['ui.router','ngResource','ngFx','btford.modal'])
|
||||
angular.module('rallly', ['ui.router','ngResource','ngFx','btford.modal','ngTagsInput','ngAnimate'])
|
||||
.config(function($stateProvider, $urlRouterProvider, $locationProvider){
|
||||
$locationProvider.html5Mode(true);
|
||||
$urlRouterProvider.otherwise("/notfound")
|
||||
|
@ -32,17 +32,32 @@ angular.module('rallly', ['ui.router','ngResource','ngFx','btford.modal'])
|
|||
templateUrl : 'templates/editevent.html',
|
||||
controller : 'EditEventCtrl'
|
||||
})
|
||||
.state('verifyevent', {
|
||||
url : '/verify/:id/code/:code',
|
||||
controller : 'VerificationCtrl'
|
||||
})
|
||||
.state('deleteevent', {
|
||||
url : '/delete/:id/code/:code',
|
||||
controller : 'DeletionCtrl'
|
||||
})
|
||||
})
|
||||
.factory('Event', function($resource){
|
||||
return $resource('/api/event/:id', { id : '@_id' }, {
|
||||
'update' : { method : 'PUT' }
|
||||
'update' : { method : 'PUT' },
|
||||
'verify' : { method : 'GET', url : '/api/event/:id/code/:code' },
|
||||
'destroy': { method : 'DELETE', url: '/api/event/:id/code/:code' }
|
||||
});
|
||||
})
|
||||
.factory('Participant', function($resource){
|
||||
return $resource('/api/event/:id/participant/:pid', { id: '@_id', pid : '@pid'}, {
|
||||
return $resource('/api/event/:id/participant/:pid', { id: '@_id'}, {
|
||||
'update' : { method : 'PUT' }
|
||||
});
|
||||
})
|
||||
.factory('Comment', function($resource){
|
||||
return $resource('/api/event/:id/comment/:cid', { id : '@_id' }, {
|
||||
'update' : { method : 'PUT' }
|
||||
})
|
||||
})
|
||||
.factory('Title', function(){
|
||||
return {
|
||||
set : function(title){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue