mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-21 09:11:29 +03:00
19 lines
405 B
JavaScript
19 lines
405 B
JavaScript
const asyncWrapper = require('../../middleware/asyncWrapper');
|
|
const App = require('../../models/App');
|
|
|
|
// @desc Delete app
|
|
// @route DELETE /api/apps/:id
|
|
// @access Public
|
|
const deleteApp = asyncWrapper(async (req, res, next) => {
|
|
await App.destroy({
|
|
where: { id: req.params.id },
|
|
});
|
|
|
|
res.status(200).json({
|
|
success: true,
|
|
data: {},
|
|
});
|
|
});
|
|
|
|
module.exports = deleteApp;
|