11 lines
223 B
JavaScript
Raw Normal View History

2022-05-02 11:09:43 +02:00
'use strict';
const hasFindMethod = (handler) => handler.split('.').pop() === 'find';
const isLocalizedPath = (routePath) => routePath.includes('localizations');
module.exports = {
isLocalizedPath,
hasFindMethod,
};