This commit is contained in:
2024-12-29 00:46:08 -07:00
parent 562ba51992
commit 41c3f26829
22 changed files with 353 additions and 76 deletions

View File

@@ -7,12 +7,14 @@ import Landing from "../pages/Landing";
import PageNotFound from "../pages/PageNotFound";
import Graph from "../pages/Graph";
import Login from "../pages/Login";
import Logout from "../pages/Logout";
const AllRoutes = () => {
return (
<Routes>
{/* Routes that require user to be logged in */}
<Route element={<AuthOnlyRoutes />}>
<Route path="/logout" element={<Logout />} />
<Route path="/graph" element={<Graph />} />
{/* <Route path="/playlists" element={<Playlists />} /> */}
</Route>
@@ -25,7 +27,6 @@ const AllRoutes = () => {
{/* Common routes */}
<Route path="/" element={<Landing />} />
<Route path="/graph2" element={<Graph />} />
{/* 404 */}
<Route path="/page-not-found" element={<PageNotFound />} />
<Route path="*" element={<PageNotFound />} />