1
0
Fork 0

new api !!!!
Some checks failed
Build / Build (push) Successful in 1m55s
Build / Deploy (push) Failing after 2m16s

This commit is contained in:
amy 2025-01-22 13:24:22 +03:30
parent 0fb867d7c5
commit 516bb1d990
No known key found for this signature in database

View file

@ -20,7 +20,7 @@ export default function Reviews() {
.then((response) => response.json()) .then((response) => response.json())
.then((data: Review[]) => { .then((data: Review[]) => {
const promises = data.map((review) => const promises = data.map((review) =>
fetch(`https://dc-lookup.spiro.exhq.dev/v1/user/${review.discordID}`) fetch(`https://discord-info.api.amy.rip/v1/user/${review.discordID}`)
.then((response) => response.json()) .then((response) => response.json())
.then((user) => ({ .then((user) => ({
...review, ...review,
@ -69,7 +69,7 @@ export default function Reviews() {
} }
export const theImager = async (id: string): Promise<string> => export const theImager = async (id: string): Promise<string> =>
await fetch(`https://dc-lookup.spiro.exhq.dev/v1/user/${id}`) await fetch(`discord-info.api.amy.rip/v1/user/${id}`)
.then((res) => res.json()) .then((res) => res.json())
.then((data) => "https://proxy.spiro.exhq.dev/_/plain/" + data.avatar.link) .then((data) => "https://proxy.spiro.exhq.dev/_/plain/" + data.avatar.link)
.catch(() => "https://http.cat/status/100"); .catch(() => "https://http.cat/status/100");