salix/front/core/lib/get-main-route.js

9 lines
160 B
JavaScript
Raw Permalink Normal View History

export default function getMainRoute(routes) {
for (let route of routes) {
if (!route.abstract)
return route;
}
return null;
}