fix(custom-fields) : retire le prefixe /api en double dans l'appel API

useApi() prepend deja apiBaseUrl (= /api), donc l'appel doit etre
/custom-fields/names et non /api/custom-fields/names (sinon 404 sur
/api/api/custom-fields/names).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-05-11 15:26:46 +02:00
parent 17ca857cc3
commit 5244698384
2 changed files with 2 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ export function useCustomFieldNameSuggestions() {
if (loading.value) return cache.value ?? []
loading.value = true
try {
const response = await api.get<string[]>('/api/custom-fields/names')
const response = await api.get<string[]>('/custom-fields/names')
if (response.success && Array.isArray(response.data)) {
cache.value = response.data
}