complete login forgot signup page - init project
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { createBrowserRouter } from "react-router-dom";
|
||||
import { AuthLayout } from "../components/ui/auth/layout";
|
||||
import App from "../App";
|
||||
import { Login } from "../pages/auth/login";
|
||||
import { ForgotPassword } from "../pages/auth/forgot-password";
|
||||
import { Register } from "../pages/auth/register";
|
||||
|
||||
export const router = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <App />
|
||||
},
|
||||
{
|
||||
element: <AuthLayout />,
|
||||
path: "/auth",
|
||||
children: [
|
||||
{
|
||||
path: "login",
|
||||
element: <Login />
|
||||
},
|
||||
{
|
||||
path: "forgot-password",
|
||||
element: <ForgotPassword />
|
||||
},
|
||||
{
|
||||
path: "register",
|
||||
element: <Register />
|
||||
}
|
||||
]
|
||||
}
|
||||
])
|
||||
Reference in New Issue
Block a user