mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-06 14:33:53 +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"];
|
const allowedPlayers = ["kodik", "libria", "sibnet"];
|
||||||
|
|
||||||
app.get("/", (req, res) => {
|
app.get("/", (req, res) => {
|
||||||
const url = req.query.url;
|
const urlParams = new URLSearchParams(req.query)
|
||||||
const player = req.query.player;
|
const url = urlParams.get("url");
|
||||||
|
const player = urlParams.get("player");
|
||||||
|
|
||||||
if (!url) {
|
if (!url) {
|
||||||
asJSON(res, { message: "no 'url' query provided" }, 400)
|
asJSON(res, { message: "no 'url' query provided" }, 400)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue