Version 1.1 #43

Merged
dbroqua merged 25 commits from develop into master 2022-04-09 00:42:25 +02:00
Showing only changes of commit ac72c1c13c - Show all commits

View file

@ -19,9 +19,11 @@ router
case "csv": case "csv":
case "musictopus": case "musictopus":
res.header("Content-Type", "text/csv"); res.header("Content-Type", "text/csv");
res.attachment("export-musictopus.csv");
return res.status(200).send(data); return res.status(200).send(data);
case "xml": case "xml":
res.header("Content-type", "text/xml"); res.header("Content-type", "text/xml");
res.attachment("export-musictopus.xml");
return res.status(200).send(data); return res.status(200).send(data);
case "xls": case "xls":
return data.write("musictopus.xls", res); return data.write("musictopus.xls", res);