Skip to content

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

@mozfet

Description

@mozfet

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)
  }
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions