mirror of
https://github.com/strapi/strapi.git
synced 2025-07-03 23:20:24 +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,
|
|
};
|