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 : {}, });
routeRules: { '/api/**': { proxy: {to: 'https://api.domain.de/api/**'} } },