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