Create route to list all the games
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package eventDemo.configuration.route
|
||||
|
||||
import eventDemo.adapter.interfaceLayer.readGamesList
|
||||
import eventDemo.adapter.interfaceLayer.readTheGameState
|
||||
import io.ktor.server.application.Application
|
||||
import io.ktor.server.routing.routing
|
||||
@@ -8,5 +9,6 @@ import org.koin.ktor.ext.get
|
||||
fun Application.declareHttpGameRoute() {
|
||||
routing {
|
||||
readTheGameState(get())
|
||||
readGamesList(get())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user