sozsoft-platform/ui/src/utils/routing.ts
Sedat Öztürk 429227df1d Initial
2026-02-24 23:44:16 +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