erp-platform/ui/src/utils/routing.ts
2025-08-12 22:42:32 +03:00

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