2021-05-17 16:23:54 +00:00
|
|
|
const express = require('express');
|
|
|
|
const router = express.Router();
|
|
|
|
|
|
|
|
const {
|
2021-06-07 10:17:10 +00:00
|
|
|
getWeather, updateWeather
|
2021-05-17 16:23:54 +00:00
|
|
|
} = require('../controllers/weather');
|
|
|
|
|
|
|
|
router
|
2021-06-07 10:17:10 +00:00
|
|
|
.route('/')
|
2021-05-17 16:23:54 +00:00
|
|
|
.get(getWeather);
|
|
|
|
|
2021-06-07 10:17:10 +00:00
|
|
|
router
|
|
|
|
.route('/update')
|
|
|
|
.get(updateWeather);
|
|
|
|
|
|
|
|
|
2021-05-17 16:23:54 +00:00
|
|
|
module.exports = router;
|