From 41e1150ea79b2e00e23e27039e1aa4c7e0a21f19 Mon Sep 17 00:00:00 2001 From: Jan Van Riel <=> Date: Tue, 6 Dec 2022 09:48:00 +0100 Subject: [PATCH] ngrok 2 --- proxy.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy.ts b/proxy.ts index 374f51b..9eab8b5 100644 --- a/proxy.ts +++ b/proxy.ts @@ -69,8 +69,9 @@ async function handler(req: Request, connInfo: ConnInfo): Promise { return await forward() } - if (url.pathname === '/deno') { - test('https://7588-87-67-226-224.eu.ngrok.io/', 'POST') + if (url.pathname === '/ngrok') { + const text = await test('https://7588-87-67-226-224.eu.ngrok.io/', 'POST') + return new Response(text, { status: 200 } ) } return new Response(null, { status: 404 } )