From 2b5af660afdd49fbbba0bbd2d0e661cb763809fb Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Sun, 3 Jul 2022 17:13:39 +0300 Subject: [PATCH] Quick-fix for sharing common data --- src/main/kotlin/ru/mipt/spc/Application.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/ru/mipt/spc/Application.kt b/src/main/kotlin/ru/mipt/spc/Application.kt index dfd6c88..61e33eb 100644 --- a/src/main/kotlin/ru/mipt/spc/Application.kt +++ b/src/main/kotlin/ru/mipt/spc/Application.kt @@ -82,6 +82,12 @@ fun Application.spcModule() { } SnarkEnvironment.default.site { + + resolveData( + this@spcModule.javaClass.getResource("/common")!!.toURI(), + dataPath / "common" + ) + val homeDataPath = resolveData( this@spcModule.javaClass.getResource("/home")!!.toURI(), dataPath / "home"