diff --git a/src/routes/index.jsx b/src/routes/index.jsx
index f5b80f7..889e13a 100644
--- a/src/routes/index.jsx
+++ b/src/routes/index.jsx
@@ -2,12 +2,12 @@ import { RouterProvider, createBrowserRouter } from "react-router-dom";
import { useAuth } from "../provider/authProvider";
import { ProtectedRoute } from "./ProtectedRoute";
-import NavBar from "../pages/NavBar";
import Login from "../pages/Login";
import Logout from "../pages/Logout";
import Home from "../pages/Home";
import UserDashboard from "../pages/UserDashboard";
import Profile from "../pages/Profile";
+import FileUploadComponent from "../pages/FileUploadComponent ";
const Routes = () => {
const { token } = useAuth();
@@ -56,6 +56,10 @@ const Routes = () => {
path: "/login",
element:
,
},
+ {
+ path: "/fileupload",
+ element:
,
+ },
];
// Combine and conditionally include routes based on authentication status
@@ -65,14 +69,17 @@ const Routes = () => {
...(!token ? routesForNotAuthenticatedOnly : []),
...routesForAuthenticatedOnly,
],
- { basename: "/usedcars" }
+ { basename: "/splitpdf" }
);
// Provide the router configuration using RouterProvider
return (
<>
-
{/* Render the NavBar component here */}
-
+
+ {/* Render the NavBar component here */}
+
+
+
>
);
};
diff --git a/vite.config.js b/vite.config.js
index 1a88fa3..f083907 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -4,5 +4,5 @@ import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
- base: "/usedcars",
-});
+ base: "/splitpdf",
+});
\ No newline at end of file