This commit is contained in:
Benjamin Toby 2026-02-02 13:30:44 +01:00
parent ebb9169472
commit 24d9b1e1ac

View File

@ -15,6 +15,16 @@ const server = Bun.serve({
console.log("req.headers", req.headers); console.log("req.headers", req.headers);
try { try {
const reqURL = new URL(req.url);
console.log("reqURL", reqURL);
if (reqURL.pathname !== "/") {
return new Response("Auth Success!", {
status: 200,
});
}
const host = req.headers.get("host"); const host = req.headers.get("host");
const query = req.headers.get("x-original-uri"); const query = req.headers.get("x-original-uri");
const href = `https://${host}${query}`; const href = `https://${host}${query}`;