RestConfig `get` binding seems to fail in most configurations
for example
fun main(args: Array<String>) {
val service = MyService()
BraidConfig()
.withPort(9001)
.withService(service)
.withHttpServerOptions(HttpServerConfig.defaultServerOptions().setSsl(false))
.withRestConfig(RestConfig()
.withApiPath("/rest")
.withDebugMode()
.withPaths {
get("/foo", service::foo)
}
)
.bootstrapBraid(TestAppServiceHub())
}
class MyService {
fun foo() = "bar"
}
accessing /rest/foo
fails with a 404