15 lines
440 B
Kotlin
15 lines
440 B
Kotlin
package eventDemo.configuration.route
|
|
|
|
import eventDemo.adapter.interfaceLayer.query.readGamesList
|
|
import eventDemo.adapter.interfaceLayer.query.readTheGameState
|
|
import io.ktor.server.application.Application
|
|
import io.ktor.server.routing.routing
|
|
import org.koin.ktor.ext.get
|
|
|
|
fun Application.declareHttpGameRoute() {
|
|
routing {
|
|
readTheGameState(this@declareHttpGameRoute.get())
|
|
readGamesList(this@declareHttpGameRoute.get())
|
|
}
|
|
}
|