update koin
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-16 14:29:49 +02:00
parent ac4e01b1e9
commit 9c432ae60d
4 changed files with 5 additions and 7 deletions

View File

@ -20,7 +20,7 @@ class OutputServiceRDBServer {
* output
*/
fun Routing.registerOutput() {
val resultObjectService by inject<IResultObjectService>()
val resultObjectService:IResultObjectService by inject()
get("/output"){
call.respond(resultObjectService.getAllResultObjects())
}

View File

@ -3,8 +3,7 @@ package com.kmalbz.di
import com.kmalbz.database.service.IResultObjectService
import com.kmalbz.database.service.ResultObjectService
import org.koin.dsl.module
import org.koin.experimental.builder.singleBy
val injectionModule = module(createdAtStart = true) {
singleBy<IResultObjectService,ResultObjectService>()
single<IResultObjectService> {ResultObjectService()}
}