aboutsummaryrefslogtreecommitdiff
path: root/kvision-server/src/main/kotlin/pl
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-08-16 15:58:50 +0200
committerRobert Jaros <rjaros@finn.pl>2018-08-16 15:58:50 +0200
commit0339ee1f67561c0016d91a7dc0c6c609198bf109 (patch)
treea6bf2f74a1d72778c222b78b11bb5c7ca0e02221 /kvision-server/src/main/kotlin/pl
parentd47ea849d13634e4df079dca6caf3697015c51bd (diff)
downloadkvision-0339ee1f67561c0016d91a7dc0c6c609198bf109.tar.gz
kvision-0339ee1f67561c0016d91a7dc0c6c609198bf109.tar.bz2
kvision-0339ee1f67561c0016d91a7dc0c6c609198bf109.zip
Fix for root assets handler with Jooby 1.4.0+
Diffstat (limited to 'kvision-server/src/main/kotlin/pl')
-rw-r--r--kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt4
1 files changed, 2 insertions, 2 deletions
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
@@ -38,9 +38,9 @@ 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))