mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 23:57:50 +01:00
add sugesstion api :3
This commit is contained in:
parent
57d19f5326
commit
a5596afc4c
1 changed files with 12 additions and 0 deletions
|
@ -193,6 +193,18 @@ app.use("/sb/i/:v/:imagePath/:img", async function (req, res) {
|
|||
f.body.pipe(res);
|
||||
});
|
||||
|
||||
app.get("/api/improving-poke/getsugesstions", async (req, res) => {
|
||||
const query = req.query.q;
|
||||
|
||||
let url = `https://invid-api.poketube.fun/api/v1/search/suggestions?q=${id}`;
|
||||
|
||||
let f = await modules.fetch(url, {
|
||||
method: req.method,
|
||||
});
|
||||
|
||||
f.body.pipe(res);
|
||||
});
|
||||
|
||||
app.get("/api/redirect", async (req, res) => {
|
||||
const red_url = atob(req.query.u);
|
||||
|
||||
|
|
Loading…
Reference in a new issue