Skip to content

Commit

Permalink
fix: fix incorrect usage of clientSettings.path as route
Browse files Browse the repository at this point in the history
  • Loading branch information
DeborahPereira4sh committed Jan 30, 2025
1 parent 34a92b2 commit 70492df
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import org.http4k.server.Http4kServer
import org.http4k.server.Undertow
import org.http4k.server.asServer
import org.slf4j.LoggerFactory
import java.lang.IllegalStateException
import java.util.*
import kotlin.reflect.KClass

Expand All @@ -37,8 +36,7 @@ class OcppSoapClientTransport(
private val handlers = mutableListOf<(HttpMessage) -> HttpMessage?>()

init {
val route =
clientSettings.path bindContract Method.POST to ::routeHandler
val route = "/" bindContract Method.POST to ::routeHandler
val app = contract {
routes += route
}
Expand Down

0 comments on commit 70492df

Please sign in to comment.