fox-send/server/routes/delete.js

11 lines
203 B
JavaScript
Raw Permalink Normal View History

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