move dc-lookup to more stable server
This commit is contained in:
parent
bc38495415
commit
fff24545a6
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,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.mono.exhq.dev/v1/user/${review.discordID}`)
|
fetch(`https://dc-lookup.spiro.exhq.dev/v1/user/${review.discordID}`)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(user => ({
|
.then(user => ({
|
||||||
...review,
|
...review,
|
||||||
|
@ -67,7 +67,7 @@ export default function Reviews() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export const theImager = async (id: string): Promise<string> => (await fetch(`https://dc-lookup.mono.exhq.dev/v1/user/${id}`)
|
export const theImager = async (id: string): Promise<string> => (await fetch(`https://dc-lookup.spiro.exhq.dev/v1/user/${id}`)
|
||||||
.then(res => res.json()).then(data => "https://proxy.mono.exhq.dev/_/plain/"+data.avatar.link).catch(() => "https://http.cat/status/100"));
|
.then(res => res.json()).then(data => "https://proxy.mono.exhq.dev/_/plain/"+data.avatar.link).catch(() => "https://http.cat/status/100"));
|
||||||
|
|
||||||
function SingleReview(props: NeoReview) {
|
function SingleReview(props: NeoReview) {
|
||||||
|
|
Loading…
Reference in a new issue