Fix double /connect endpoint

This commit is contained in:
swissalpine 2023-12-06 20:27:38 +01:00 committed by GitHub
parent bafdaa304d
commit d686e62996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ class GarminPlugin @Inject constructor(
registerEndpoint("/get", requestHandler(::onGetBloodGlucose))
registerEndpoint("/carbs", requestHandler(::onPostCarbs))
registerEndpoint("/connect", requestHandler(::onConnectPump))
registerEndpoint("/connect", requestHandler(::onSgv))
registerEndpoint("/sgv.json", requestHandler(::onSgv))
awaitReady(wait)
}
} else if (server != null) {