added trailing slash regex to router

This commit is contained in:
Orion Reed 2023-08-12 19:12:17 +01:00
parent 94742e01f4
commit 5a7b53b1ec
1 changed files with 3 additions and 3 deletions

View File

@ -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>