Closed ye1999 closed 3 months ago
"nuxt-api-party": "^2.0.8",
const { data } = await useJsonPlaceholderData( 'comments', { headers: { 'Json-Placeholder-Endpoint-Url': 'https://jsonplaceholder-v2.typicode.com' } } )
’Json-Placeholder-Endpoint-Url‘ × ‘jsonPlaceholder-endpoint-url’ √
docs:https://nuxt-api-party.byjohann.dev/guide/dynamic-backend-url.html source code:handler.ts:50 const baseURL = new Headers(headers).get(${endpointId}-endpoint-url) || endpoint.url
${endpointId}-endpoint-url
No response
Thanks for the report!
Environment
Reproduction
const { data } = await useJsonPlaceholderData( 'comments', { headers: { 'Json-Placeholder-Endpoint-Url': 'https://jsonplaceholder-v2.typicode.com' } } )
Describe the bug
’Json-Placeholder-Endpoint-Url‘ × ‘jsonPlaceholder-endpoint-url’ √
Additional context
docs:https://nuxt-api-party.byjohann.dev/guide/dynamic-backend-url.html source code:handler.ts:50
const baseURL = new Headers(headers).get(
${endpointId}-endpoint-url
) || endpoint.urlLogs
No response