9 lines
160 B
JavaScript
9 lines
160 B
JavaScript
|
|
||
|
export default function getMainRoute(routes) {
|
||
|
for (let route of routes) {
|
||
|
if (!route.abstract)
|
||
|
return route;
|
||
|
}
|
||
|
return null;
|
||
|
}
|