Kairo-Jinkendo/frontend/src/api/steering.js
Lars efb45a3ee6
Some checks failed
Test Suite / pytest-backend (push) Failing after 2s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Failing after 50s
Erfassen und Transparent: Archetyp, Methode und Auspraegung in der UI sichtbar.
Method-Profiles-API und Auswahl beim Anlegen/Profil; Steuerungs-Meta in Listen und Plan; Projekt-Archetyp-Spiegel, Next-Action-Links und Umlaut-Fix fuer testbare Guidance.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 12:36:12 +02:00

23 lines
684 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 }),
})
}
export function updateInitiativeMethodProfile(initiativeId, methodProfileKey) {
const body = methodProfileKey
? { method_profile_key: methodProfileKey }
: { clear_method_profile: true }
return apiFetch(`/api/steering/initiatives/${initiativeId}/context`, {
method: 'PATCH',
body: JSON.stringify(body),
})
}