31 lines
490 B
JavaScript

const express = require('express');
const router = express.Router();
const dailyDataController = require('../controllers/dailyDataController.js');
/*
* GET
*/
router.get('/', dailyDataController.list);
/*
* GET
*/
//router.get('/:id', dailyDataController.show);
/*
* POST
*/
router.post('/', dailyDataController.create);
/*
* PUT
*/
//router.put('/:id', dailyDataController.update);
/*
* DELETE
*/
router.delete('/:id', dailyDataController.remove);
module.exports = router;