Migrate all kitchen frontend fetch calls to /kitchen/api/ prefix (B5b)
All archive components were calling fetch('/api/...') directly. Replaced
all occurrences of /api/ URLs (string literals, template literals,
window.open, src attributes) with /kitchen/api/ across 37 source files.
The central axios instance in api.ts was already correct.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ecd63fc65f
commit
9905d0e0dd
51 changed files with 453 additions and 453 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import axios from 'axios'
|
||||
|
||||
// Central axios instance for new/migrated code.
|
||||
// Existing archive components still call fetch('/api/...') directly —
|
||||
// Existing archive components still call fetch('/kitchen/api/...') directly —
|
||||
// see port log B5 for the migration tracker.
|
||||
const api = axios.create({
|
||||
baseURL: '/kitchen/api',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue