mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
jshint
This commit is contained in:
@@ -112,13 +112,11 @@ apiController.getConfig = function(req, res, next) {
|
||||
|
||||
|
||||
apiController.renderWidgets = function(req, res, next) {
|
||||
var async = require('async'),
|
||||
areas = {
|
||||
template: req.query.template,
|
||||
locations: req.query.locations,
|
||||
url: req.query.url
|
||||
},
|
||||
renderedWidgets = [];
|
||||
var areas = {
|
||||
template: req.query.template,
|
||||
locations: req.query.locations,
|
||||
url: req.query.url
|
||||
};
|
||||
|
||||
if (!areas.template || !areas.locations) {
|
||||
return res.status(200).json({});
|
||||
|
||||
Reference in New Issue
Block a user