17 lines
396 B
TypeScript
17 lines
396 B
TypeScript
|
|
import { ModuleClientParams } from "@erp/core/client";
|
||
|
|
import { RouteObject } from "react-router-dom";
|
||
|
|
import { LoginPage } from "./pages";
|
||
|
|
|
||
|
|
export const AuthRoutes = (params: ModuleClientParams): RouteObject[] => {
|
||
|
|
return [
|
||
|
|
{
|
||
|
|
path: "login",
|
||
|
|
element: <LoginPage />,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: "register",
|
||
|
|
element: <div>Register</div>, // o tu componente real
|
||
|
|
},
|
||
|
|
];
|
||
|
|
};
|