2022-08-11 10:20:49 +02:00

11 lines
223 B
JavaScript

'use strict';
const hasFindMethod = (handler) => handler.split('.').pop() === 'find';
const isLocalizedPath = (routePath) => routePath.includes('localizations');
module.exports = {
isLocalizedPath,
hasFindMethod,
};