mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-03 21:15:35 +05:00
send 200OK on index
This commit is contained in:
parent
e64118a2a1
commit
50b3ca79b5
1 changed files with 9 additions and 1 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue