Moritz Walter
Moritz Walter
NNuxt
Created by Moritz Walter on 11/13/2024 in #❓・help
html from api
need to replace the whole page
17 replies
NNuxt
Created by Moritz Walter on 11/13/2024 in #❓・help
html from api
didn't help me
17 replies
NNuxt
Created by Moritz Walter on 11/13/2024 in #❓・help
html from api
@kapa.ai is there a way to fetch the full html from an api?
17 replies
NNuxt
Created by Moritz Walter on 11/13/2024 in #❓・help
html from api
@kapa.ai how i can use the plugin in the server route?
17 replies
NNuxt
Created by Moritz Walter on 11/4/2024 in #❓・help
Import composables from an other Module
@kapa.ai I do not want to provide a composable. I want to use a composable from another module in a Nuxt module.
10 replies
NNuxt
Created by Moritz Walter on 3/29/2024 in #❓・help
HTTP-Statuscode on useFetch()
nvm "ignoreResponseError"
8 replies
NNuxt
Created by Moritz Walter on 3/29/2024 in #❓・help
HTTP-Statuscode on useFetch()
works so far, thank you. How do I call up the status code for a 4xx? it throws an exception.
8 replies
NNuxt
Created by Moritz Walter on 3/29/2024 in #❓・help
HTTP-Statuscode on useFetch()
const apiRequest: any = await $fetch("/api" + url, {
method: httpMethod,
headers: {
...headers,
'Content-Type': 'application/json',
},
body: httpMethod != 'GET' ? JSON.stringify(request) : undefined,
params: httpMethod == 'GET' ? request : {},
});
const apiRequest: any = await $fetch("/api" + url, {
method: httpMethod,
headers: {
...headers,
'Content-Type': 'application/json',
},
body: httpMethod != 'GET' ? JSON.stringify(request) : undefined,
params: httpMethod == 'GET' ? request : {},
});
i have made a function that calls this up, how do i do it there?
8 replies
NNuxt
Created by Moritz Walter on 3/29/2024 in #❓・help
HTTP-Statuscode on useFetch()
I don't know if it's me, but when I make myself a routeRules
routeRules: {
'/api/**': { proxy: {to: 'https://api.domain.de/api/**'} }
},
routeRules: {
'/api/**': { proxy: {to: 'https://api.domain.de/api/**'} }
},
then i get "ECONNREFUSED" in the server-console browser console works without problems make the requests with axois, for the statuscode
8 replies
NNuxt
Created by Moritz Walter on 3/29/2024 in #❓・help
HTTP-Statuscode on useFetch()
I almost thought so
8 replies