This commit is contained in:
psychobunny
2015-10-28 16:17:27 -04:00
parent 13c1dbe178
commit ef20141e8f
4 changed files with 10 additions and 15 deletions

View File

@@ -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({});