diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-05-05 22:52:36 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-05-05 22:52:36 +0200 |
commit | 1cb5675924a56baf6f8dce62e569bf6f2416d58e (patch) | |
tree | 2d1ad67e4bc53f902f92652c71a0f1c8e775b216 /kvision-server/src/main/kotlin/pl/treksoft | |
parent | 82d9528999273b75df1542c2effa764a762b10dd (diff) | |
download | kvision-1cb5675924a56baf6f8dce62e569bf6f2416d58e.tar.gz kvision-1cb5675924a56baf6f8dce62e569bf6f2416d58e.tar.bz2 kvision-1cb5675924a56baf6f8dce62e569bf6f2416d58e.zip |
Default assets configuration.
Diffstat (limited to 'kvision-server/src/main/kotlin/pl/treksoft')
-rw-r--r-- | kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt | 4 |
1 files changed, 4 insertions, 0 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 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)) |