9d53bf87b4e6853af3d64741887e0ffed41b8e37
[motion.git] / server / api / square_odbc / index.js
1 'use strict';
2
3 var express = require('express');
4 var controller = require('./square_odbc.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.odbcValidation);
13 router.put('/:id', auth.isAuthenticated(), controller.update);
14 router.patch('/:id', auth.isAuthenticated(), controller.update);
15 router.delete('/:id', auth.isAuthenticated(), controller.destroy);
16
17 module.exports = router;