How do I specify a route on the root?
mozfet opened this issue · 0 comments
mozfet commented
Hi. Just started using this package today.
I need a link url for sharing with external users. The link url needs to be as short as possible.
How do I register a route without a section, for example this url?
test.com/id=1234
I tried, without success:
Router.register({
'': async parameters => {
console.log('Viewing root:', parameters)
}
})
and
Router.register({
'/': async parameters => {
console.log('Viewing root:', parameters)
}
})