From 50b3ca79b564e4743e8ddb17645ca56a2e970b0f Mon Sep 17 00:00:00 2001 From: Radiquum Date: Fri, 22 Aug 2025 23:24:14 +0500 Subject: [PATCH] send 200OK on index --- api-prox/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/api-prox/index.ts b/api-prox/index.ts index 7bcd03c..09cf1ac 100644 --- a/api-prox/index.ts +++ b/api-prox/index.ts @@ -72,6 +72,14 @@ async function loadHooks() { } } +app.get("/", async (req, res) => { + res.status(200); + res.set({ + "Content-Type": "text/html; charset=utf-8", + }); + res.send(""); +}); + app.get("/player", async (req, res) => { let url = req.query.url || null; @@ -287,7 +295,7 @@ app.post("/*path", async (req, res) => { let apiResponse: null | Response = null; const apiHeaders: ANIXART_HEADERST = { "User-Agent": ANIXART_HEADERS["User-Agent"], - "Content-Type": req.headers["content-type"] || "application/json" + "Content-Type": req.headers["content-type"] || "application/json", }; if (