mirror of
https://github.com/JuLi0n21/homepage.git
synced 2026-06-05 01:46:29 +00:00
set up fshare cache
This commit is contained in:
@@ -12,7 +12,7 @@ const response = await fetch(api);
|
|||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
const files = data.files.map(
|
const files = data.files.map(
|
||||||
(f: Response) => `https://fshare.kami.boo/raw${f.url.substring(2)}`,
|
(f: Response) => `https://shit-cache.illegalesachen.download/${btoa('https://fshare.kami.boo/raw' + f.url.substring(2))}`,
|
||||||
) as string[];
|
) as string[];
|
||||||
|
|
||||||
const middle = Math.round(files.length / 2);
|
const middle = Math.round(files.length / 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user