5 lines
240 B
TypeScript
5 lines
240 B
TypeScript
import { ROUTES_ENUM } from "@/routes/route.constant";
|
|
|
|
// src/utils/routing.ts
|
|
export const getAccessDeniedPath = (pathname: string) =>
|
|
pathname.startsWith('/admin') ? ROUTES_ENUM.protected.accessDenied : ROUTES_ENUM.public.accessDenied
|