mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 09:38:25 +01:00
Update server.js
This commit is contained in:
parent
d7bda929a9
commit
4187f9b1e6
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ app.get("/old/watch", async function (req, res) {
|
|||
lyrics: lyrics.replace(/\n/g, " <br> "),
|
||||
});
|
||||
});
|
||||
app.get("/feed/discover/trends", async function (req, res) {
|
||||
app.get("/discover", async function (req, res) {
|
||||
const trends = await fetch(config.tubeApi + `trending`);
|
||||
const h = await trends.text();
|
||||
const k = JSON.parse(toJson(h));
|
||||
|
@ -263,7 +263,7 @@ app.get("/video/upload", (req, res) => {
|
|||
res.redirect("https://youtube.com/upload?from=poketube_utc");
|
||||
});
|
||||
app.get("/", (req, res) => {
|
||||
res.redirect("/feed/discover/trends?param=/");
|
||||
res.redirect("/discover");
|
||||
});
|
||||
app.get("/api/video/download", async function (req, res) {
|
||||
var v = req.query.v;
|
||||
|
|
Loading…
Reference in a new issue