This commit is contained in:
@ -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())
|
||||
}
|
||||
|
@ -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()}
|
||||
}
|
||||
|
Reference in New Issue
Block a user