Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I specify a route on the root? #4

Open
mozfet opened this issue Jun 10, 2019 · 0 comments
Open

How do I specify a route on the root? #4

mozfet opened this issue Jun 10, 2019 · 0 comments

Comments

@mozfet
Copy link

mozfet commented Jun 10, 2019

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)
  }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant