17 lines
312 B
JavaScript
17 lines
312 B
JavaScript
'use strict';
|
|
|
|
var async = require('async');
|
|
|
|
var widgetsController = module.exports;
|
|
|
|
widgetsController.get = function (req, res, next) {
|
|
async.waterfall([
|
|
function (next) {
|
|
require('../../widgets/admin').get(next);
|
|
},
|
|
function (data) {
|
|
res.render('admin/extend/widgets', data);
|
|
},
|
|
], next);
|
|
};
|