Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/strapi/lib/middlewares/router/utils/composeEndpoint.js
Назад
'use strict'; const _ = require('lodash'); const compose = require('koa-compose'); const createRouteChecker = require('./routerChecker'); module.exports = strapi => { const routerChecker = createRouteChecker(strapi); return (value, { plugin, router }) => { if (_.isEmpty(_.get(value, 'method')) || _.isEmpty(_.get(value, 'path'))) { return; } const { method, endpoint, policies, action } = routerChecker(value, plugin); if (_.isUndefined(action) || !_.isFunction(action)) { return strapi.log.warn( `Ignored attempt to bind route '${value.method} ${value.path}' to unknown controller/action.` ); } router[method](endpoint, compose(policies), action); }; };
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка