From 8cf3b937ebb4edfc09c8d7e81eda8d0b8d51f3de Mon Sep 17 00:00:00 2001 From: firefloc-nox Date: Sat, 14 Mar 2026 08:32:33 +0100 Subject: [PATCH] fix(onboarding): use POST for gateway health check in wizard (#334) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test connection button in the onboarding wizard was using GET to call /api/gateways/health, which only exports POST — resulting in a 405 and "Gateway unreachable" shown to the user. Fixes the HTTP method to POST so the health probe works correctly. Co-authored-by: Firefloc --- src/components/onboarding/onboarding-wizard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/onboarding/onboarding-wizard.tsx b/src/components/onboarding/onboarding-wizard.tsx index ce26d11..aa3ffcd 100644 --- a/src/components/onboarding/onboarding-wizard.tsx +++ b/src/components/onboarding/onboarding-wizard.tsx @@ -529,7 +529,7 @@ function StepGatewayLink({ isGateway, registration, onNext, onBack }: { const testConnection = async () => { setTesting(true) try { - const res = await fetch('/api/gateways/health') + const res = await fetch('/api/gateways/health', { method: 'POST' }) setHealthOk(res.ok) } catch { setHealthOk(false)