mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-11 05:32:40 +01:00
11 lines
203 B
JavaScript
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);
|
|
}
|
|
};
|