From 1cb5675924a56baf6f8dce62e569bf6f2416d58e Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 5 May 2018 22:52:36 +0200 Subject: Default assets configuration. --- kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kvision-server/src') 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 14b2b376..7d339d04 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 @@ -35,6 +35,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") val mapper = jacksonObjectMapper() @Suppress("LeakingThis") use(Jackson(mapper)) -- cgit