Skip to content

Commit

Permalink
fix thumb url
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Dec 30, 2024
1 parent 79c9be9 commit 739f353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v2/images/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function handler(req, res) {
if (image.includes("CardFace")) {
url = `https://api.hakush.in/gi/UI/${image}.webp`;
} else {
url = `https://assets.gi-tcg.guyutongxue.site/assets/${image}.webp?thumb=${thumb}`;
url = `https://assets.gi-tcg.guyutongxue.site/assets/${thumb ? 'thumbs/' : '' }${image}.webp`;
}
res.status(307).setHeader("Location", url).send(void 0);
}

0 comments on commit 739f353

Please sign in to comment.