diff options
author | crupest <crupest@outlook.com> | 2022-04-10 16:04:03 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-10 16:04:03 +0800 |
commit | 928ba0ce419bacba113951095278a5138ead34cf (patch) | |
tree | ad4bc6b985c21e751199a25a77f36da7163a47c5 /FrontEnd/src/App.tsx | |
parent | 86160e4a5697615452a7e06dc78f8be4c8b2515f (diff) | |
download | timeline-928ba0ce419bacba113951095278a5138ead34cf.tar.gz timeline-928ba0ce419bacba113951095278a5138ead34cf.tar.bz2 timeline-928ba0ce419bacba113951095278a5138ead34cf.zip |
...
Diffstat (limited to 'FrontEnd/src/App.tsx')
-rw-r--r-- | FrontEnd/src/App.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/FrontEnd/src/App.tsx b/FrontEnd/src/App.tsx index 69223abb..5e61848a 100644 --- a/FrontEnd/src/App.tsx +++ b/FrontEnd/src/App.tsx @@ -8,7 +8,6 @@ import Home from "./views/home"; import Login from "./views/login"; import Settings from "./views/settings"; import About from "./views/about"; -import User from "./views/user"; import TimelinePage from "./views/timeline"; import Search from "./views/search"; import Admin from "./views/admin"; @@ -35,8 +34,8 @@ function App(): ReactElement | null { <Route path="/login" element={<Login />} /> <Route path="/settings" element={<Settings />} /> <Route path="/about" element={<About />} /> - <Route path="/timelines/:name" element={<TimelinePage />} /> - <Route path="/users/:username" element={<User />} /> + <Route path="/:owner" element={<TimelinePage />} /> + <Route path="/:owner/:timeline" element={<TimelinePage />} /> <Route path="/search" element={<Search />} /> <Route path="/admin" element={<Admin />} /> <Route element={<NoMatch />} /> |