From 0339ee1f67561c0016d91a7dc0c6c609198bf109 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 16 Aug 2018 15:58:50 +0200 Subject: Fix for root assets handler with Jooby 1.4.0+ --- kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kvision-server') diff --git a/kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt b/kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt index a529aa27..346b55cc 100644 --- a/kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt +++ b/kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt @@ -37,10 +37,10 @@ import kotlinx.coroutines.experimental.async as coroutinesAsync */ actual open class JoobyServer(init: JoobyServer.() -> Unit) : Kooby() { init { - @Suppress("LeakingThis") - assets("/**") @Suppress("LeakingThis") assets("/", "index.html") + @Suppress("LeakingThis") + assets("/**") val mapper = jacksonObjectMapper() @Suppress("LeakingThis") use(Jackson(mapper)) -- cgit