Skip to content

Commit

Permalink
ngrok 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Van Riel committed Dec 6, 2022
1 parent b5385c5 commit 41e1150
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ async function handler(req: Request, connInfo: ConnInfo): Promise<Response> {
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 } )
Expand Down

0 comments on commit 41e1150

Please sign in to comment.