a
This commit is contained in:
parent
a7240c7a6f
commit
740af1740d
@ -56,6 +56,8 @@ const extraControllers = {
|
||||
console.log(req.user);
|
||||
|
||||
|
||||
console.log(req);
|
||||
/*
|
||||
|
||||
var origin = (req.user && req.user.role == 90) ? 'admin' : 'web';
|
||||
|
||||
@ -69,7 +71,7 @@ const extraControllers = {
|
||||
var invitationCode = Buffer.from(req.params.encodedInvitationCode, 'base64').toString('ascii');
|
||||
console.log(user, invitationCode);
|
||||
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
@ -128,13 +128,6 @@ routes.post('/events/:id/inscriptions',
|
||||
eventController.createInscription
|
||||
);
|
||||
|
||||
// Hacer una inscripción por la web
|
||||
routes.post('/events/:id/webinscriptions',
|
||||
SchemaValidator(eventValidation.webInscriptionInputType, true),
|
||||
eventController.createInscription
|
||||
);
|
||||
|
||||
|
||||
routes.delete('/events/:id/inscriptions',
|
||||
// Borrar una inscripción (poner el id de la inscripción????)
|
||||
isLoggedUser,
|
||||
@ -164,6 +157,13 @@ routes.get('/web/events',
|
||||
}),
|
||||
);
|
||||
|
||||
// Hacer una inscripción por la web
|
||||
routes.post('/web/events/:id/inscriptions',
|
||||
//SchemaValidator(eventValidation.webInscriptionInputType, true),
|
||||
eventController.createInscription
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
routes.get('/tickets/:id/',
|
||||
isLoggedUser,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user