feat(config): phase 7 — drop /ims basePath, update all hardcoded paths, refresh env spec
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export function CapaOwnerActions({ capaId, currentStatus }: Props) {
|
||||
async function updateStatus(status: string) {
|
||||
setLoading(true)
|
||||
try {
|
||||
const res = await fetch(`/ims/api/capa/${capaId}`, {
|
||||
const res = await fetch(`/api/capa/${capaId}`, {
|
||||
method: 'PATCH',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ status }),
|
||||
|
||||
@@ -17,7 +17,7 @@ export function CapaOwnerNotesForm({ capaId, initialNotes }: Props) {
|
||||
setSaving(true)
|
||||
setSaved(false)
|
||||
setError(null)
|
||||
const res = await fetch(`/ims/api/capa/${capaId}`, {
|
||||
const res = await fetch(`/api/capa/${capaId}`, {
|
||||
method: 'PATCH',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ owner_notes: notes }),
|
||||
|
||||
@@ -16,7 +16,7 @@ export function CloseCapaButton({ capaId }: Props) {
|
||||
if (!confirm('Close this CAPA? This marks it as fully resolved.')) return
|
||||
setLoading(true)
|
||||
setError(null)
|
||||
const res = await fetch(`/ims/api/capa/${capaId}`, {
|
||||
const res = await fetch(`/api/capa/${capaId}`, {
|
||||
method: 'PATCH',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ status: 'closed' }),
|
||||
|
||||
@@ -23,7 +23,7 @@ export function VerifyForm({ capaId }: Props) {
|
||||
}
|
||||
setSaving(true)
|
||||
setError(null)
|
||||
const res = await fetch(`/ims/api/capa/${capaId}/verify`, {
|
||||
const res = await fetch(`/api/capa/${capaId}/verify`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ verdict, reopen_reason: reopenReason || null }),
|
||||
|
||||
Reference in New Issue
Block a user