diff --git a/app/routes/captcha.tsx b/app/routes/captcha.tsx deleted file mode 100644 index f4e3a35..0000000 --- a/app/routes/captcha.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import { useLoaderData } from "@remix-run/react"; - -export async function loader({ - context, -}: { - context: RequestContext; -}): Promise { - return context.env.TURNSTILE_SITEKEY; -} - -export default function () { - return ( - <> -
()} - >
- - - - ); -} diff --git a/functions/api/webview-captcha.ts b/functions/api/webview-captcha.ts new file mode 100644 index 0000000..7be755a --- /dev/null +++ b/functions/api/webview-captcha.ts @@ -0,0 +1,28 @@ +export async function onRequestGet(context: RequestContext) { + return new Response( + ` + + + WebView Captcha + + + +
+ + + `, + { + headers: { + "content-type": "text/html", + }, + }, + ); +}