|
|
@ -10,13 +10,13 @@ var helpers = require('./helpers');
|
|
|
|
|
|
|
|
|
|
|
|
exports.get = function (req, res, next) {
|
|
|
|
exports.get = function (req, res, next) {
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
function (next) {
|
|
|
|
function (_next) {
|
|
|
|
plugins.fireHook('filter:composer.build', {
|
|
|
|
plugins.fireHook('filter:composer.build', {
|
|
|
|
req: req,
|
|
|
|
req: req,
|
|
|
|
res: res,
|
|
|
|
res: res,
|
|
|
|
next: next,
|
|
|
|
next: next,
|
|
|
|
templateData: {},
|
|
|
|
templateData: {},
|
|
|
|
}, next);
|
|
|
|
}, _next);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
function (data) {
|
|
|
|
function (data) {
|
|
|
|
if (data.templateData.disabled) {
|
|
|
|
if (data.templateData.disabled) {
|
|
|
|