Skip to content

Repository files navigation

🚀 strapi-template

const { removeTime, removeAttrsAndId } = require("../../../utils/index.js"); const { createCoreController } = require('@strapi/strapi').factories;

module.exports = createCoreController('api::layout.layout', ({ strapi }) => ({ async find(ctx) { ctx.query = { ...ctx.query, populate: "deep", }; const { data } = await super.find(ctx); return removeAttrsAndId(removeTime(data[0])); }, }));

About

个人 strapi 开发 模版

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages