mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
admin - download emails.csv, thanks to @akhoury for the gist
This commit is contained in:
@@ -159,6 +159,14 @@ var nconf = require('nconf'),
|
||||
|
||||
uploadImage(filename, req, res);
|
||||
});
|
||||
|
||||
app.get('/users/csv', function(req, res) {
|
||||
user.getUsersCSV(function(err, data) {
|
||||
res.attachment('users.csv');
|
||||
res.setHeader('Content-Type', 'text/csv');
|
||||
res.end(data);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function uploadImage(filename, req, res) {
|
||||
|
||||
Reference in New Issue
Block a user