1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-14 07:02:30 +01:00
send/server/routes/delete.js

11 lines
203 B
JavaScript
Raw Normal View History

const storage = require('../storage');
module.exports = async function(req, res) {
try {
2018-02-06 23:31:18 +01:00
await storage.del(req.params.id);
res.sendStatus(200);
} catch (e) {
res.sendStatus(404);
}
};