Skip to content

Commit

Permalink
fix: routing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustic-Citrus committed Jul 10, 2024
1 parent 6939d87 commit c306117
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const App = () => {
errorElement={<Error />}
/>
<Route
path="register"
path="/register"
element={
<PublicRoute>
<Register />
Expand All @@ -39,7 +39,7 @@ export const App = () => {
errorElement={<Error />}
/>
<Route
path="login"
path="/login"
element={
<PublicRoute>
<SignIn />
Expand All @@ -48,7 +48,7 @@ export const App = () => {
errorElement={<Error />}
/>
<Route
path=":userId"
path="/:userId"
element={
<ProtectedRoute>
<Profile />
Expand All @@ -57,7 +57,7 @@ export const App = () => {
errorElement={<Error />}
/>
<Route
path=":userId/view/:lessonId"
path="/:userId/view/:lessonId"
element={
<ProtectedRoute>
<LessonPlanView />
Expand All @@ -66,7 +66,7 @@ export const App = () => {
errorElement={<Error />}
/>
<Route
path=":userId/edit/:lessonId"
path="/:userId/edit/:lessonId"
element={
<ProtectedRoute>
<LessonPlanEdit />
Expand All @@ -75,7 +75,7 @@ export const App = () => {
errorElement={<Error />}
/>
<Route
path=":userId/create"
path="/:userId/create"
element={
<ProtectedRoute>
<LessonPlanCreate />
Expand Down

0 comments on commit c306117

Please sign in to comment.