mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-10 14:41:49 +02:00
First Commit
This commit is contained in:
commit
2630cc237a
527 changed files with 104273 additions and 0 deletions
11
api/event/index.js
Normal file
11
api/event/index.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
var express = require('express');
|
||||
var router = express.Router();
|
||||
var controller = require('./event.controller');
|
||||
var debug = require('debug')('api/event/index');
|
||||
/* GET home page. */
|
||||
|
||||
router.post('/', controller.create);
|
||||
router.get('/:id', controller.show);
|
||||
router.post('/:id/participant', controller.createParticipant);
|
||||
router.delete('/:id/participant/:pid', controller.deleteParticipant);
|
||||
module.exports = router;
|
Loading…
Add table
Add a link
Reference in a new issue