UPDATE: Add placeholders for all functions

This commit is contained in:
Nicolás Hatcher
2024-11-24 13:50:54 +01:00
committed by Nicolás Hatcher Andrés
parent 48afb45eb9
commit 8243e231ab
478 changed files with 12081 additions and 42 deletions

View File

@@ -21,6 +21,12 @@ export async function get_model(modelHash: string): Promise<Uint8Array> {
);
}
export async function get_documentation_model(filename: string): Promise<Uint8Array> {
return new Uint8Array(
await (await fetch(`/models/${filename}.ic`)).arrayBuffer(),
);
}
export async function downloadModel(bytes: Uint8Array, fileName: string) {
const response = await fetch("/api/download", {
method: "POST",