2017-08-24 23:54:02 +02:00
|
|
|
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);
|
2017-08-24 23:54:02 +02:00
|
|
|
} catch (e) {
|
|
|
|
res.sendStatus(404);
|
|
|
|
}
|
|
|
|
};
|