Built motion from commit 06df96e on branch develop.
[motion.git] / server / api / voice_context / index.js
1 'use strict';
2
3 var express = require('express');
4 var controller = require('./voice_context.controller');
5 var auth = require('../../auth/auth.service');
6
7 var router = express.Router();
8
9 router.get('/', auth.isAuthenticated(), controller.index);
10 router.get('/:id', auth.isAuthenticated(), controller.show);
11 router.post('/', auth.isAuthenticated(), controller.create);
12 router.post('/validate', auth.isAuthenticated(), controller.contextValidation);
13 router.put('/:id', auth.isAuthenticated(), controller.update);
14 router.delete('/', auth.isAuthenticated(), controller.bulkDestroy);
15 router.delete('/:id', auth.isAuthenticated(), controller.destroy);
16 module.exports = router;