Redirect / -> /login
This commit is contained in:
parent
918a04076f
commit
f4c5cb10df
@ -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 />} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user