/** * This is the place where the PageElement matching from the contextPath is finally searched. * If it has reached here, it means that the PageElement matching the path has not been found, so it returns the page name 'page404'. * This page displays the Page404 Element implementing the tag name 'page-404'. * Naturally, the mapping implementation for the 'page404' page can be overridden in the parent module. * * 여기는 contextPath로부터 매칭되는 PageElement를 과정에서 맨 마직막에 뒤져지는 곳이다. * 여기까지 들어왔다면, path에 매핑되는 PageElement를 찾지 못한 것이므로, 페이지 이름 'page404' 를 리턴한다. * 이 페이지는 태그네임 'page-404'를 구현한 Page404 Element를 보여주게 된다. * 당연히 상위 모듈에서 'page404' 페이지에 대한 매핑 구현을 오버라이드 할 수 있다. */ export default function route(page) { import('@operato/shell/page-404.js') return 'page404' }