11 lines
223 B
JavaScript
Raw Normal View History

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