Skip to content

cuteyk/strapi-template

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

Watchers

Forks

Releases

No releases published

Packages

No packages published