Built motion from commit 5e31ea4.|0.0.32
[motion.git] / server / api / sugarcrm_account / index.js
1 'use strict';
2
3 var express = require('express');
4 var auth = require('../../auth/auth.service');
5 var controller = require('./sugarcrm_account.controller');
6
7 var router = express.Router();
8
9 router.get('/', auth.isAuthenticated(), controller.index);
10 router.get('/:id/check', auth.isAuthenticated(), controller.checkAccount);
11 router.get('/:id/fields', auth.isAuthenticated(), controller.getFields);
12 router.get('/:id', auth.isAuthenticated(), controller.show);
13 router.post('/validate/:field', auth.isAuthenticated(), controller.accountValidation);
14 router.post('/', auth.isAuthenticated(), controller.create);
15 router.put('/:id', auth.isAuthenticated(), controller.update);
16 router.patch('/:id', auth.isAuthenticated(), controller.update);
17 router.delete('/', auth.isAuthenticated(), controller.bulkDestroy);
18 router.delete('/:id', auth.isAuthenticated(), controller.destroy);
19
20
21 module.exports = router;