1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 00:34:41 -05:00

Update src/libpoketube/init/pages-api.js

This commit is contained in:
ashley 2024-08-23 22:39:47 +00:00
parent c2866de248
commit 3b9cff1c24

View file

@ -55,7 +55,7 @@ module.exports = function (app, config, renderTemplate) {
});
app.get("/vi/:v/:t", async function (req, res) {
var url = `https://vid.puffyan.us/vi/${req.params.v}/${req.params.t}`
var url = `https://iv.ggtyler.dev/vi/${req.params.v}/${req.params.t}`
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -66,7 +66,7 @@ module.exports = function (app, config, renderTemplate) {
});
app.get("/avatars/:v", async function (req, res) {
var url = `https://vid.puffyan.us/ggpht/${req.params.v}`;
var url = `https://iv.ggtyler.dev/ggpht/${req.params.v}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -76,7 +76,7 @@ app.get("/avatars/:v", async function (req, res) {
});
app.get("/ggpht/:v", async function (req, res) {
var url = `https://vid.puffyan.us/ggpht/${req.params.v}`;
var url = `https://iv.ggtyler.dev/ggpht/${req.params.v}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
@ -87,7 +87,7 @@ app.get("/avatars/:v", async function (req, res) {
app.get("/avatars/ytc/:v", async function (req, res) {
var url = `https://vid.puffyan.us/ggpht/ytc/${req.params.v.replace("ytc", "")}`;
var url = `https://iv.ggtyler.dev/ggpht/ytc/${req.params.v.replace("ytc", "")}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,