can now get mods from beat-mods api

This commit is contained in:
MathieuG-P
2022-09-17 11:47:02 +02:00
parent 955771c7f9
commit d491b24149
6 changed files with 146 additions and 13 deletions
+34
View File
@@ -0,0 +1,34 @@
export interface Mod {
_id: string,
name: string,
version: string,
gameVersion: string,
authorId: string,
uploadedDate: string,
updatedDate: string,
author: ModAuthor,
description: string,
link: string,
category: string,
downloads: DownloadLink[],
required: boolean,
dependencies: Mod[],
}
export interface ModAuthor {
_id: string,
username: string,
lastLogin: string,
}
export interface DownloadLink {
type: string,
url: string,
hashMd5: FileHashes[]
}
export interface FileHashes {
hash: string,
file: string
}