get samplers from backend

This commit is contained in:
Qing
2024-01-02 14:34:36 +08:00
parent a2fd5bb3ea
commit f38be37f8c
14 changed files with 141 additions and 101 deletions

View File

@@ -194,3 +194,8 @@ export async function getGenInfo(file: File): Promise<GenInfo> {
const res = await api.post(`/gen-info`, fd)
return res.data
}
export async function getSamplers(): Promise<string[]> {
const res = await api.post("/samplers")
return res.data
}