12 lines
305 B
JavaScript

const express = require('express');
const router = express.Router();
const locationController = require('../controllers/locationController.js');
router.get('/', locationController.list);
router.get('/csv', locationController.csv);
router.get('/:id', locationController.show);
module.exports = router;