fix(config): phase 7 follow-up — fix remaining /ims/ occurrences in sw.js, notifications, components
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -134,7 +134,7 @@ export function ReportForm({ zoneToken, trucks, initialTruckId }: Props) {
|
||||
|
||||
if (!overrideQuality) {
|
||||
try {
|
||||
const qcRes = await fetch('/ims/api/incidents/ai/quality-check', {
|
||||
const qcRes = await fetch('/api/incidents/ai/quality-check', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
@@ -176,7 +176,7 @@ export function ReportForm({ zoneToken, trucks, initialTruckId }: Props) {
|
||||
if (form.truck_id) fd.append('truck_id', form.truck_id)
|
||||
files.forEach(f => fd.append('files', f))
|
||||
|
||||
const res = await fetch('/ims/api/incidents', { method: 'POST', body: fd })
|
||||
const res = await fetch('/api/incidents', { method: 'POST', body: fd })
|
||||
|
||||
// Parse JSON separately so a non-JSON response (HTML error page) surfaces the status code
|
||||
let data: Record<string, unknown> = {}
|
||||
|
||||
Reference in New Issue
Block a user