11 lines
219 B
JavaScript
Raw Normal View History

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