31 lines
503 B
JavaScript

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