Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/strapi-plugin-content-manager/config/policies/routing.js
Назад
'use strict'; const _ = require('lodash'); module.exports = async (ctx, next) => { const { model } = ctx.params; const ct = strapi.contentTypes[model]; if (!ct) { return ctx.send({ error: 'contentType.notFound' }, 404); } const target = ct.plugin === 'admin' ? strapi.admin : strapi.plugins[ct.plugin]; const actionPath = ['config', 'layout', ct.modelName, 'actions', ctx.request.route.action]; if (_.has(target, actionPath)) { const [controller, action] = _.get(target, actionPath, []).split('.'); if (controller && action) { return await target.controllers[controller.toLowerCase()][action](ctx); } } await next(); };
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка