Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Commit c01a9f4

Browse files
committed
fix links
1 parent dc887db commit c01a9f4

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/lib/api.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
export async function getImage(i: string): Promise<any> {
2-
return await fetch(`https://ascella.wtf/v2/ascella/view/${i}/stats`)
2+
return await fetch(`https://api.ascella.host/v2/ascella/view/${i}/stats`)
33
.then((r) => r.json())
44
.catch(() => ({}));
55
}
66
export async function getDomains(): Promise<any> {
7-
return await fetch(`https://ascella.wtf/v2/ascella/domains`)
7+
return await fetch(`https://api.ascella.host/v2/ascella/domains`)
88
.then((r) => r.json())
99
.catch(() => ({}));
1010
}
1111
export async function getReviews(): Promise<any> {
12-
return await fetch(`https://ascella.wtf/v2/ascella/reviews.json`)
12+
return await fetch(`https://api.ascella.host/v2/ascella/reviews.json`)
1313
.then((r) => r.json())
1414
.catch(() => []);
1515
}
1616
export async function getStats(): Promise<any> {
17-
return await fetch(`https://ascella.wtf/v2/ascella/stats.json`)
17+
return await fetch(`https://api.ascella.host/v2/ascella/stats.json`)
1818
.then((r) => r.json())
1919
.catch(() => ({}));
2020
}
2121
export async function getPaste(i: string): Promise<any> {
2222
try {
23-
const r = await fetch(`https://ascella.wtf/v2/paste/${i}`);
23+
const r = await fetch(`https://api.ascella.host/v2/paste/${i}`);
2424
return await r.json();
2525
} catch {
2626
return undefined;

src/routes/[...image]/index.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<meta property="theme-color" content={embed.color} />
6868
<meta property="og:author" content={user_name} />
6969

70-
<meta property="og:image" content={`https://ascella.wtf/v2/ascella/view/${url}.png`} />
70+
<meta property="og:image" content={`https://api.ascella.host/v2/ascella/view/${url}.png`} />
7171
<meta property="og:type" content="website" />
7272
<meta property="twitter:card" content="summary_large_image" />
7373

@@ -81,8 +81,8 @@
8181

8282
<div class="main min-w-screen w-full min-h-screen h-full p-0">
8383
<div class="box mx-auto text-white">
84-
<a href={`https://ascella.wtf/v2/ascella/view/${url}.png`} target="_blank">
85-
<img class="image" alt="" src={`https://ascella.wtf/v2/ascella/view/${url}.png`} />
84+
<a href={`https://api.ascella.host/v2/ascella/view/${url}.png`} target="_blank">
85+
<img class="image" alt="" src={`https://api.ascella.host/v2/ascella/view/${url}.png`} />
8686
</a>
8787
<div class="bar ">
8888
<p>Views {views}</p>

src/routes/[email protected]

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<form
99
on:submit|preventDefault={async () => {
10-
let v = await fetch('https://ascella.wtf/v2/ascella/report', {
10+
let v = await fetch('https://api.ascella.host/v2/ascella/report', {
1111
method: 'POST',
1212
body: JSON.stringify({
1313
id: parseInt(image.toString())

0 commit comments

Comments
 (0)