Compare commits
1
Commits
3960931ebe
...
v2.10.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f252562103 |
@@ -63,7 +63,7 @@ module.exports = function registerWeatherRoutes(app, deps) {
|
||||
} catch (error) { next(error); }
|
||||
});
|
||||
|
||||
app.get('/data-sources/weather/new', requirePermission('weather.create'), function (req, res) {
|
||||
app.get('/data-sources/weather/new', requirePermission('weather.create'), function (req, res, next) {
|
||||
getProviderAvailability().then(function (providerAvailability) {
|
||||
res.send(renderWeatherLocationAddPage({}, req.query.message ? String(req.query.message) : '', req.currentUser, { providerAvailability: providerAvailability }));
|
||||
}).catch(next);
|
||||
|
||||
Reference in New Issue
Block a user