Files
imphnen-frontend-service/apps/backoffice/src/middleware.ts
T

12 lines
246 B
TypeScript
Raw Normal View History

2025-03-17 09:39:04 +07:00
import { LoaderFunctionArgs } from 'react-router-dom';
export const middleware = async ({ request }: LoaderFunctionArgs) => {
const url = new URL(request.url);
const pathname = url.pathname;
if (pathname) return null;
return null;
};