This repository was archived by the owner on Aug 11, 2024. It is now read-only.
File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
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` )
3
3
. then ( ( r ) => r . json ( ) )
4
4
. catch ( ( ) => ( { } ) ) ;
5
5
}
6
6
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` )
8
8
. then ( ( r ) => r . json ( ) )
9
9
. catch ( ( ) => ( { } ) ) ;
10
10
}
11
11
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` )
13
13
. then ( ( r ) => r . json ( ) )
14
14
. catch ( ( ) => [ ] ) ;
15
15
}
16
16
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` )
18
18
. then ( ( r ) => r . json ( ) )
19
19
. catch ( ( ) => ( { } ) ) ;
20
20
}
21
21
export async function getPaste ( i : string ) : Promise < any > {
22
22
try {
23
- const r = await fetch ( `https://ascella.wtf /v2/paste/${ i } ` ) ;
23
+ const r = await fetch ( `https://api. ascella.host /v2/paste/${ i } ` ) ;
24
24
return await r . json ( ) ;
25
25
} catch {
26
26
return undefined ;
Original file line number Diff line number Diff line change 67
67
<meta property ="theme-color" content ={embed .color } />
68
68
<meta property ="og:author" content ={user_name } />
69
69
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 ` } />
71
71
<meta property =" og:type" content =" website" />
72
72
<meta property =" twitter:card" content =" summary_large_image" />
73
73
81
81
82
82
<div class =" main min-w-screen w-full min-h-screen h-full p-0" >
83
83
<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 ` } />
86
86
</a >
87
87
<div class =" bar " >
88
88
<p >Views {views }</p >
Original file line number Diff line number Diff line change 7
7
8
8
<form
9
9
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' , {
11
11
method: ' POST' ,
12
12
body: JSON .stringify ({
13
13
id: parseInt (image .toString ())
You can’t perform that action at this time.
0 commit comments