芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/strapi/lib/middlewares/responses/index.js
'use strict'; const _ = require('lodash'); module.exports = strapi => { return { initialize() { strapi.app.use(async (ctx, next) => { await next(); const responseFn = strapi.config.get(['functions', 'responses', ctx.status]); if (_.isFunction(responseFn)) { await responseFn(ctx); } }); }, }; };