mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-29 22:18:13 +00:00
login and sign up configuration
This commit is contained in:
@@ -3,6 +3,8 @@ import { ProtectedRoute } from './ProtectedRoute';
|
||||
import { BackofficeLayout } from '../layouts/BackofficeLayout';
|
||||
import { AuthLayout } from '../layouts/AuthLayout';
|
||||
import { LoginPage } from '../features/auth/pages/LoginPage';
|
||||
import { SignupPage } from '../features/auth/pages/SignupPage';
|
||||
import { SetPasswordPage } from '../features/auth/pages/SetPasswordPage';
|
||||
import { DashboardPage } from '../features/dashboard/pages/DashboardPage';
|
||||
import { ItemPage } from '../features/item/pages/ItemPage';
|
||||
|
||||
@@ -22,7 +24,11 @@ const router = createBrowserRouter([
|
||||
},
|
||||
{
|
||||
element: <AuthLayout />,
|
||||
children: [{ path: '/login', element: <LoginPage /> }],
|
||||
children: [
|
||||
{ path: '/login', element: <LoginPage /> },
|
||||
{ path: '/signup', element: <SignupPage /> },
|
||||
{ path: '/set-password', element: <SetPasswordPage /> },
|
||||
],
|
||||
},
|
||||
{ path: '/404', element: <div>Page not found</div> },
|
||||
{ path: '*', element: <Navigate to="/404" replace /> },
|
||||
|
||||
Reference in New Issue
Block a user