3 var express = require('express');
4 var auth = require('../../auth/auth.service');
5 var controller = require('./sugarcrm_configuration.controller');
7 var router = express.Router();
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);
18 module.exports = router;