mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 22:15:36 +05:00
fix/player-parsers: https://github.com/Radiquum/AniX/pull/6#discussion_r2115719910
This commit is contained in:
parent
e79d1e92b8
commit
f249cb85ec
1 changed files with 3 additions and 2 deletions
|
@ -11,8 +11,9 @@ const port = 7000;
|
|||
const allowedPlayers = ["kodik", "libria", "sibnet"];
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
const url = req.query.url;
|
||||
const player = req.query.player;
|
||||
const urlParams = new URLSearchParams(req.query)
|
||||
const url = urlParams.get("url");
|
||||
const player = urlParams.get("player");
|
||||
|
||||
if (!url) {
|
||||
asJSON(res, { message: "no 'url' query provided" }, 400)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue