Search...
pages
Returns the names of the pages associated with this router.
Description
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', ...)
).
Type:
Array<string>Read Only
Was this helpful?
Get the names of the pages associated with this router
Copy Code
1export function myRouter_Router(request) {23 let pages = request.pages;4 // ["myRouter-page1", "myRouter-page2"]56}