all files / src/controllers/admin/ widgets.js

42.86% Statements 3/7
0% Branches 0/2
0% Functions 0/2
42.86% Lines 3/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16                         
'use strict';
 
var widgetsController = {};
 
widgetsController.get = function(req, res, next) {
	require('../../widgets/admin').get(function(err, data) {
		if (err) {
			return next(err);
		}
 
		res.render('admin/extend/widgets', data);
	});
};
 
 
module.exports = widgetsController;