3 var express = require('express');
4 var controller = require('./widget.controller');
5 var auth = require('../../auth/auth.service');
7 var router = express.Router();
9 // router.get('/', auth.isAuthenticated(), controller.index);
10 router.get('/counter', auth.isAuthenticated(), controller.counter);
11 router.get('/table', auth.isAuthenticated(), controller.table);
12 router.get('/piechart', auth.isAuthenticated(), controller.piechart);
13 // router.get('/:id', auth.isAuthenticated(), controller.show);
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('/:id', auth.isAuthenticated(), controller.destroy);
19 module.exports = router;