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

50% Statements 4/8
0% Branches 0/2
0% Functions 0/2
50% Lines 4/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20                               
'use strict';
 
var social = require('../../social');
 
var socialController = {};
 
 
socialController.get = function(req, res, next) {
	social.getPostSharing(function(err, posts) {
		if (err) {
			return next(err);
		}
 
		res.render('admin/general/social', {
			posts: posts
		});
	});
};
 
module.exports = socialController;