This commit is contained in:
john 2025-05-05 23:35:51 +02:00
parent 2f330a3b40
commit a4fd3a3556
2 changed files with 10 additions and 5 deletions

View file

@ -8,6 +8,7 @@ import SignupPage from './pages/SignupPage.tsx'
function App() {
const postService = new PostsService()
const mediaService = new MediaService()
return (
<BrowserRouter>
<Routes>
@ -16,7 +17,7 @@ function App() {
element={<HomePage postsService={postService} mediaService={mediaService} />}
/>
<Route path="/u/:username" element={<AuthorPage postsService={postService} />} />
<Route path="/signup" element={<SignupPage />} />
<Route path="/signup/:code?" element={<SignupPage />} />
</Routes>
</BrowserRouter>
)