fix(onboarding): use POST for gateway health check in wizard (#334)

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 <firefloc@MacBook-Pro-de-Firefloc.local>
This commit is contained in:
firefloc-nox 2026-03-14 08:32:33 +01:00 committed by GitHub
parent ab7038af30
commit 8cf3b937eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)