Ajout du nom du fichier lors de l'export
This commit is contained in:
parent
95ab6f5f42
commit
ac72c1c13c
1 changed files with 2 additions and 0 deletions
|
@ -19,9 +19,11 @@ router
|
|||
case "csv":
|
||||
case "musictopus":
|
||||
res.header("Content-Type", "text/csv");
|
||||
res.attachment("export-musictopus.csv");
|
||||
return res.status(200).send(data);
|
||||
case "xml":
|
||||
res.header("Content-type", "text/xml");
|
||||
res.attachment("export-musictopus.xml");
|
||||
return res.status(200).send(data);
|
||||
case "xls":
|
||||
return data.write("musictopus.xls", res);
|
||||
|
|
Loading…
Reference in a new issue