pages


pagesArray<string>Read-only

Returns the names of the pages associated with this router.

Pages are added and removed from a router in the Editor. The page names returned by the pages property can be used when returning a router response (e.g. ok('page-name', ...)).

Get the names of the pages associated with this router
JavaScript
export function myRouter_Router(request) { let pages = request.pages; // ["myRouter-page1", "myRouter-page2"] }
Did this help?