The Brand.vue autofill was hitting the endpoint with a raw fetch() call including manual CSRF header wiring, content-type boilerplate, and error parsing. Inertia v3 ships useHttp() for standalone HTTP requests that handles all of that natively — matching the convention already used elsewhere in the app (YouTubeAnalytics, XAnalytics, InstagramAnalytics). Typed the payload and response shape so the composable gives us type-safe access to the fields we care about. Error handling now reads from the Inertia exception's response.data.message. |
||
|---|---|---|
| .. | ||
| Account.vue | ||
| Brand.vue | ||
| Role.vue | ||