mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 09:23:12 +08:00
WeatherWidget temp unit. WeatherSettings update on change
This commit is contained in:
@@ -11,7 +11,7 @@ const {
|
||||
} = require('../controllers/config');
|
||||
|
||||
router
|
||||
.route('')
|
||||
.route('/')
|
||||
.post(createPair)
|
||||
.get(getAllPairs)
|
||||
.put(updateValues);
|
||||
|
||||
@@ -2,11 +2,16 @@ const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
const {
|
||||
getWeather
|
||||
getWeather, updateWeather
|
||||
} = require('../controllers/weather');
|
||||
|
||||
router
|
||||
.route('')
|
||||
.route('/')
|
||||
.get(getWeather);
|
||||
|
||||
router
|
||||
.route('/update')
|
||||
.get(updateWeather);
|
||||
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user