2016-02-25 14:05:48 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
2017-05-23 20:43:09 -04:00
|
|
|
var async = require('async');
|
2016-02-25 14:05:48 -05:00
|
|
|
|
2017-05-23 20:43:09 -04:00
|
|
|
var social = require('../../social');
|
2016-02-25 14:05:48 -05:00
|
|
|
|
2017-05-23 20:43:09 -04:00
|
|
|
var socialController = module.exports;
|
2016-02-25 14:05:48 -05:00
|
|
|
|
2016-10-13 11:43:39 +02:00
|
|
|
socialController.get = function (req, res, next) {
|
2017-05-23 20:43:09 -04:00
|
|
|
async.waterfall([
|
|
|
|
|
function (next) {
|
|
|
|
|
social.getPostSharing(next);
|
|
|
|
|
},
|
|
|
|
|
function (posts) {
|
|
|
|
|
res.render('admin/general/social', {
|
|
|
|
|
posts: posts,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
], next);
|
2016-02-25 14:05:48 -05:00
|
|
|
};
|