From f4c5cb10dffa2e7feb0ef8282a1edf729ab87ee8 Mon Sep 17 00:00:00 2001
From: Parker <contact@pkrm.dev>
Date: Mon, 11 Nov 2024 20:35:08 -0600
Subject: Redirect / -> /login

---
 app/src/App.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'app/src/App.tsx')

diff --git a/app/src/App.tsx b/app/src/App.tsx
index 858ad44..54a500d 100644
--- a/app/src/App.tsx
+++ b/app/src/App.tsx
@@ -1,4 +1,9 @@
-import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
+import {
+  BrowserRouter as Router,
+  Route,
+  Routes,
+  Navigate,
+} from 'react-router-dom';
 import Login from './components/Login';
 import Signup from './components/Signup';
 import Dashboard from './components/Dashboard';
@@ -7,6 +12,7 @@ function App() {
   return (
     <Router>
       <Routes>
+        <Route path="/" element={<Navigate to="/login" replace />} />
         <Route path="/login" element={<Login />} />
         <Route path="/signup" element={<Signup />} />
         <Route path="/dashboard" element={<Dashboard />} />
-- 
cgit v1.2.3-70-g09d2

