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:
commit
65b604c939
1 changed files with 1 additions and 2 deletions
|
@ -114,8 +114,7 @@ adminControllers = {
|
||||||
},
|
},
|
||||||
// frontend route for downloading a file
|
// frontend route for downloading a file
|
||||||
exportContent: function (req, res) {
|
exportContent: function (req, res) {
|
||||||
/*jslint unparam:true*/
|
api.db.exportContent.call({user: req.session.user}).then(function (exportData) {
|
||||||
api.db.exportContent().then(function (exportData) {
|
|
||||||
// send a file to the client
|
// send a file to the client
|
||||||
res.set('Content-Disposition', 'attachment; filename="GhostData.json"');
|
res.set('Content-Disposition', 'attachment; filename="GhostData.json"');
|
||||||
res.json(exportData);
|
res.json(exportData);
|
||||||
|
|
Loading…
Add table
Reference in a new issue