mirror of
https://github.com/strapi/strapi.git
synced 2025-12-14 16:51:55 +00:00
update comment
This commit is contained in:
parent
35ac3263e9
commit
f8fd4c1c09
@ -59,11 +59,11 @@ const getPathParams = routePath => {
|
|||||||
*/
|
*/
|
||||||
const getPathWithPrefix = (globalRoutePrefix, route) => {
|
const getPathWithPrefix = (globalRoutePrefix, route) => {
|
||||||
if (_.has(route.info, 'pluginName') && _.has(route.config, 'prefix')) {
|
if (_.has(route.info, 'pluginName') && _.has(route.config, 'prefix')) {
|
||||||
// Set the prefix specified on a plugin route
|
// Use the prefix specified on a plugin route
|
||||||
return route.config.prefix.concat(route.path);
|
return route.config.prefix.concat(route.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the prefix set for all routes
|
// Use the prefix specified for all routes
|
||||||
return globalRoutePrefix.concat(route.path);
|
return globalRoutePrefix.concat(route.path);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user