datewise/app/routes/_index.tsx
metatroncubeswdev e56182e0e3 chore: initial Datewise app (rebranded from SlotSure prototype)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:06:49 -04:00

9 lines
328 B
TypeScript

import type { LoaderFunctionArgs } from "react-router";
import { redirect } from "react-router";
export const loader = async ({ request }: LoaderFunctionArgs) => {
const url = new URL(request.url);
if (url.searchParams.get("shop")) throw redirect(`/app?${url.searchParams.toString()}`);
throw redirect("/auth/login");
};