mirror of
https://github.com/strapi/strapi.git
synced 2025-07-17 22:14:25 +00:00
15 lines
219 B
JavaScript
15 lines
219 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Create a new entry.
|
|
*/
|
|
|
|
module.exports = function * () {
|
|
try {
|
|
const entry = yield strapi.hooks.blueprints.create(this);
|
|
this.body = entry;
|
|
} catch (err) {
|
|
this.body = err;
|
|
}
|
|
};
|