started on icons

This commit is contained in:
Stian Fredrik Aune
2021-06-05 18:31:21 +02:00
parent 677d9aa9b1
commit ea3037b03a
15 changed files with 360 additions and 55 deletions
+10
View File
@@ -0,0 +1,10 @@
import {ColorPreset} from "../models/Colors";
import {getRequest, postRequest} from "../helpers/rest";
export function listColorPresets(): Promise<ColorPreset[]> {
return getRequest("/color-presets");
}
export function addColorPreset(name: string, colorString: string) {
return postRequest("/color-presets", {name, colorString});
}