Update frontend/src/App.jsx
Browse files- frontend/src/App.jsx +9 -0
frontend/src/App.jsx
CHANGED
|
@@ -6,6 +6,7 @@ import { AuthProvider, useAuth } from "./contexts/AuthContext";
|
|
| 6 |
import Layout from "./Layout";
|
| 7 |
import Dashboard from "./pages/Dashboard";
|
| 8 |
import History from "./pages/History";
|
|
|
|
| 9 |
import LoginForm from "./components/auth/LoginForm";
|
| 10 |
|
| 11 |
// Auth callback handler component
|
|
@@ -64,6 +65,14 @@ function AppRoutes() {
|
|
| 64 |
path="/auth/callback"
|
| 65 |
element={<AuthCallback />}
|
| 66 |
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
<Route
|
| 68 |
path="/"
|
| 69 |
element={
|
|
|
|
| 6 |
import Layout from "./Layout";
|
| 7 |
import Dashboard from "./pages/Dashboard";
|
| 8 |
import History from "./pages/History";
|
| 9 |
+
import ShareHandler from "./pages/ShareHandler";
|
| 10 |
import LoginForm from "./components/auth/LoginForm";
|
| 11 |
|
| 12 |
// Auth callback handler component
|
|
|
|
| 65 |
path="/auth/callback"
|
| 66 |
element={<AuthCallback />}
|
| 67 |
/>
|
| 68 |
+
<Route
|
| 69 |
+
path="/share/:token"
|
| 70 |
+
element={
|
| 71 |
+
<ProtectedRoute>
|
| 72 |
+
<ShareHandler />
|
| 73 |
+
</ProtectedRoute>
|
| 74 |
+
}
|
| 75 |
+
/>
|
| 76 |
<Route
|
| 77 |
path="/"
|
| 78 |
element={
|