0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Merge pull request #2615 from sebgie/issue#2612

Added user to export call
This commit is contained in:
Hannah Wolfe 2014-04-18 18:33:09 +02:00
commit 65b604c939

View file

@ -114,8 +114,7 @@ adminControllers = {
},
// frontend route for downloading a file
exportContent: function (req, res) {
/*jslint unparam:true*/
api.db.exportContent().then(function (exportData) {
api.db.exportContent.call({user: req.session.user}).then(function (exportData) {
// send a file to the client
res.set('Content-Disposition', 'attachment; filename="GhostData.json"');
res.json(exportData);