13 lines
354 B
JavaScript
13 lines
354 B
JavaScript
|
|
import { apiFetch } from './client.js'
|
||
|
|
|
||
|
|
export function listSteeringMethods() {
|
||
|
|
return apiFetch('/api/steering/methods')
|
||
|
|
}
|
||
|
|
|
||
|
|
export function updateInitiativeSteeringMethod(initiativeId, methodKey) {
|
||
|
|
return apiFetch(`/api/steering/initiatives/${initiativeId}/context`, {
|
||
|
|
method: 'PATCH',
|
||
|
|
body: JSON.stringify({ method_key: methodKey }),
|
||
|
|
})
|
||
|
|
}
|