You can achieve that, just pay attention, that routers will answer the URL path under the convention the router function name is written.
For example:
export function myRouter_Router(request) {
...
}
Will be called for any requests for URLs:
https:///myRouter/…
https://.wixsite.com//myRouter/…
Which might be different than your page urls.
Regards,
Genry.