Skip to content

Commit

Permalink
temp log URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-flip committed Oct 18, 2024
1 parent 9324696 commit 8376547
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8376547

Please sign in to comment.