mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 07:02:26 +00:00
15 lines
228 B
JavaScript
15 lines
228 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* List every entries of a model.
|
|
*/
|
|
|
|
module.exports = function * () {
|
|
try {
|
|
const entry = yield strapi.hooks.blueprints.find(this);
|
|
this.body = entry;
|
|
} catch (err) {
|
|
this.body = err;
|
|
}
|
|
};
|