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">
|
<Box mb="xl">
|
||||||
<Router>
|
<Router>
|
||||||
<Home path="/" />
|
<Home path="/" />
|
||||||
<Posts path="/posts" />
|
<Posts path="/posts(/?)" />
|
||||||
<Post path="/posts/:title" />
|
<Post path="/posts/:title(/?)" />
|
||||||
<Stream path="/stream" />
|
<Stream path="/stream(/?)" />
|
||||||
<NotFound default />
|
<NotFound default />
|
||||||
</Router>
|
</Router>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue