The best way to control Claude Code, Codex and more from any computer or phone

main
ts 8 lines 266 Bytes
Raw
1 import type { LoaderFunctionArgs } from "react-router";
2
3 export function loader({ request }: LoaderFunctionArgs) {
4 return Response.json({
5 name: new URL(request.url).searchParams.get("name") ?? "visitor",
6 greeting: process.env.GREETING ?? "Hello!",
7 });
8 }