drop.chapril.org-firefoxsend/server/routes/delete.js
2018-02-09 15:03:05 -08:00

11 lines
203 B
JavaScript

const storage = require('../storage');
module.exports = async function(req, res) {
try {
await storage.del(req.params.id);
res.sendStatus(200);
} catch (e) {
res.sendStatus(404);
}
};