From 83765476d86addf4ce5652464e1058891e6ff675 Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 18 Oct 2024 23:51:15 +0200 Subject: [PATCH] temp log URLs --- index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.ts b/index.ts index 8cbc66b..09ca2b8 100644 --- a/index.ts +++ b/index.ts @@ -8,6 +8,8 @@ serve({ async fetch(req) { // Extract sessionID from the current URL path const url = new URL(req.url); + console.log(url); + const sessionID = url.pathname.split("/")[1]; if (!sessionID) return new Response(`No sessionID provided! Example: "${`${url}`.replace('http:', 'https:')}S-U-h33tology:fitness"`, { status: 400 }); // send API request to Resonite to get lnl-net link