added trailing slash regex to router
This commit is contained in:
parent
94742e01f4
commit
5a7b53b1ec
|
|
@ -16,9 +16,9 @@ export function App() {
|
|||
<Box mb="xl">
|
||||
<Router>
|
||||
<Home path="/" />
|
||||
<Posts path="/posts" />
|
||||
<Post path="/posts/:title" />
|
||||
<Stream path="/stream" />
|
||||
<Posts path="/posts(/?)" />
|
||||
<Post path="/posts/:title(/?)" />
|
||||
<Stream path="/stream(/?)" />
|
||||
<NotFound default />
|
||||
</Router>
|
||||
</Box>
|
||||
|
|
|
|||
Loading…
Reference in New Issue