Controller1 strapi customizing(2) customizing을 위한 기본적인 내장 함수 설명과, strapi에 의해서 제공되는 기본 APIs 이외 개발자가 생성한 API를 어떻게 추가 하는지 설명 하도록 한다. customizing을 위한 내장 함수 설명 module.exports = { async find(ctx) { let entities; if (ctx.query._q) { entities = await strapi.services['task'].search(ctx.query); } else { entities = await strapi.services['task'].find(ctx.query); } return entities.map(entity => { const item = sanitizeEntity(entity, { model: .. 2020. 12. 18. 이전 1 다음