MCPcopy Create free account
hub / github.com/Microck/opencode-studio / getPresets

Function getPresets

client-next/src/lib/api.ts:679–682  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

677}
678
679export async function getPresets(): Promise<Preset[]> {
680 const { data } = await api.get<Preset[]>('/presets');
681 return data;
682}
683
684export async function savePreset(name: string, description: string, config: PresetConfig): Promise<Preset> {
685 const { data } = await api.post<Preset>('/presets', { name, description, config });

Callers 1

loadPresetsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected