mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-22 16:23:50 +00:00
Update ServerLauncher.kt
This commit is contained in:
parent
369ff26627
commit
072805efc7
@ -7,11 +7,7 @@ import org.koin.core.Koin
|
|||||||
import org.koin.core.module.Module
|
import org.koin.core.module.Module
|
||||||
import org.koin.dsl.module
|
import org.koin.dsl.module
|
||||||
|
|
||||||
class ServerLauncher : ServerPlugin {
|
object ServerLauncher : ServerPlugin {
|
||||||
val defaultJson = Json {
|
|
||||||
ignoreUnknownKeys = true
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun Module.setupDI(config: JsonObject) {
|
override fun Module.setupDI(config: JsonObject) {
|
||||||
val pluginsConfig = defaultJson.decodeFromJsonElement(Config.serializer(), config)
|
val pluginsConfig = defaultJson.decodeFromJsonElement(Config.serializer(), config)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user