Updates
This commit is contained in:
parent
ebb9169472
commit
24d9b1e1ac
@ -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}`;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user