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