mirror of
https://github.com/strapi/strapi.git
synced 2025-07-18 22:45:47 +00:00
15 lines
226 B
JavaScript
15 lines
226 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Destroy a specific entry.
|
|
*/
|
|
|
|
module.exports = function * () {
|
|
try {
|
|
const entry = yield strapi.hooks.blueprints.destroy(this);
|
|
this.body = entry;
|
|
} catch (err) {
|
|
this.body = err;
|
|
}
|
|
};
|