started on icons
This commit is contained in:
@@ -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});
|
||||
}
|
||||
Reference in New Issue
Block a user