- initial;
This commit is contained in:
20
src/routes.js
Normal file
20
src/routes.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Route, Routes } from 'react-router-dom';
|
||||
|
||||
// components
|
||||
import PageNotFound from './pages/PageNotFound';
|
||||
import Login from './pages/Login';
|
||||
import ProtectedRoute from './components/ProtectedRoute';
|
||||
import Dashboard from './pages/Dashboard';
|
||||
import DefaultLayout from './layouts/DefaultLayout';
|
||||
|
||||
const routes = () => (
|
||||
<Routes>
|
||||
<Route element={<ProtectedRoute/>}>
|
||||
<Route path="/" element={<DefaultLayout><Dashboard/></DefaultLayout>}/>
|
||||
</Route>
|
||||
<Route exact path="/login" element={<Login/>}/>
|
||||
{/*<Route exact path="/forgot-password" element={<ForgotPassword/>}/>*/}
|
||||
<Route path="*" element={<PageNotFound/>}/>
|
||||
</Routes>);
|
||||
|
||||
export default routes;
|
||||
Reference in New Issue
Block a user