login and sign up configuration

This commit is contained in:
mengstabketemaw
2026-06-02 12:11:29 +03:00
parent e735ba4fca
commit df745bbc41
15 changed files with 785 additions and 7 deletions

View File

@@ -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 /> },