Returns the base URL of the request.
Premium sites:
Free sites:
Sets or gets the page name.
Returns the names of the pages associated with this router.
Pages are added and removed from a router in the Editor.
Returns the router prefix of the request.
Premium sites:
Free sites:
Returns the details of the current site user who is logged in.
Returns an object with the id
and role
of the logged in user
who made the request.
export function myRouter_SiteMap(sitemapRequest) {
let user = sitemapRequest.user;
/*
* {
* "id": "f6q0fb32-b06r-469f-ag4d-9df89afkj5d9",
* "role": "Admin"
* }
*/
}