This commit is contained in:
2025-10-23 15:30:48 -03:00
parent 235fb538e1
commit 8b5c940976
4 changed files with 77 additions and 16 deletions
+8 -1
View File
@@ -6,6 +6,7 @@ import { BrowserRouter, Routes, Route } from "react-router-dom";
import { ThemeProvider } from "next-themes";
import Index from "./pages/Index";
import NotFound from "./pages/NotFound";
import Redirect from "./pages/Redirect";
const queryClient = new QueryClient();
@@ -17,9 +18,15 @@ const App = () => (
<Sonner />
<BrowserRouter>
<Routes>
<Route path="/" element={<Index />} />
<Route
path="/redir/:gsikey"
element={<Redirect />}
/>
<Route path="/*" element={<Index />} />
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
<Route path="*" element={<NotFound />} />
<Route path="/404" element={<NotFound />} />
</Routes>
</BrowserRouter>
</TooltipProvider>