send 200OK on index

This commit is contained in:
Kentai Radiquum 2025-08-22 23:24:14 +05:00
parent e64118a2a1
commit 50b3ca79b5
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -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 (