mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-21 09:11:29 +03:00
17 lines
264 B
JavaScript
17 lines
264 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
|
|
const {
|
|
getWeather, updateWeather
|
|
} = require('../controllers/weather');
|
|
|
|
router
|
|
.route('/')
|
|
.get(getWeather);
|
|
|
|
router
|
|
.route('/update')
|
|
.get(updateWeather);
|
|
|
|
|
|
module.exports = router; |