90111bf8161f7cd997bd015e141b5285c3e03ef7
[motion.git] / server / api / sugarcrm_configuration / index.js
1 'use strict';
2
3 var express = require('express');
4 var auth = require('../../auth/auth.service');
5 var controller = require('./sugarcrm_configuration.controller');
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.put('/:id', auth.isAuthenticated(), controller.update);
13 router.post('/:id/:type', auth.isAuthenticated(), controller.addConfigurationField);
14 router.patch('/:id', auth.isAuthenticated(), controller.update);
15 router.delete('/:id', auth.isAuthenticated(), controller.destroy);
16
17
18 module.exports = router;