update comment

This commit is contained in:
Mark Kaylor 2022-04-11 11:22:48 +02:00
parent 35ac3263e9
commit f8fd4c1c09

View File

@ -59,11 +59,11 @@ const getPathParams = routePath => {
*/
const getPathWithPrefix = (globalRoutePrefix, route) => {
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);
}
// Set the prefix set for all routes
// Use the prefix specified for all routes
return globalRoutePrefix.concat(route.path);
};