3 var express = require('express');
4 var auth = require('../../auth/auth.service');
5 var controller = require('./freshdesk_configuration.controller');
7 var router = express.Router();
9 router.get('/', auth.isAuthenticated(), controller.index);
11 router.get('/:id', auth.isAuthenticated(), controller.show);
12 router.post('/', auth.isAuthenticated(), controller.create);
13 router.put('/:id', auth.isAuthenticated(), controller.update);
14 router.post('/:id/:type', auth.isAuthenticated(), controller.addConfigurationField);
15 router.patch('/:id', auth.isAuthenticated(), controller.update);
16 router.delete('/:id', auth.isAuthenticated(), controller.destroy);
19 module.exports = router;