feat: reducing http downloads duplicate

This commit is contained in:
Chubby Granny Chaser
2024-08-17 21:43:56 +01:00
parent d098887c51
commit bbe68a0aff
6 changed files with 64 additions and 163 deletions

View File

@@ -16,6 +16,8 @@ export interface GofileContentsResponse {
children: Record<string, GofileContentChild>;
}
export const WT = "4fd6sg89d7s6";
export class GofileApi {
private static token: string;
@@ -35,7 +37,7 @@ export class GofileApi {
public static async getDownloadLink(id: string) {
const searchParams = new URLSearchParams({
wt: "4fd6sg89d7s6",
wt: WT,
});
const response = await axios.get<{