aboutsummaryrefslogtreecommitdiff
path: root/kvision-server/src/main/kotlin/pl/treksoft/kvision
diff options
context:
space:
mode:
Diffstat (limited to 'kvision-server/src/main/kotlin/pl/treksoft/kvision')
-rw-r--r--kvision-server/src/main/kotlin/pl/treksoft/kvision/remote/Jooby.kt4
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))