mirror of
https://github.com/strapi/strapi.git
synced 2025-07-05 16:12:18 +00:00
11 lines
223 B
JavaScript
11 lines
223 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
const hasFindMethod = (handler) => handler.split('.').pop() === 'find';
|
||
|
|
||
|
const isLocalizedPath = (routePath) => routePath.includes('localizations');
|
||
|
|
||
|
module.exports = {
|
||
|
isLocalizedPath,
|
||
|
hasFindMethod,
|
||
|
};
|