yari-garan/src/modules/auth/routes/router.tsx

15 lines
407 B
TypeScript

import type { AppRoute } from "@core/types/router.type";
import LoginPage from "../pages/login";
import RegisterPage from "../pages/register";
import { AUTH_ROUTE } from "./route.constant";
export const authRoutes: AppRoute[] = [
{
path: "/auth",
children: [
{ path: AUTH_ROUTE.LOGIN, element: <LoginPage /> },
{ path: AUTH_ROUTE.REGISTER, element: <RegisterPage /> },
],
},
];