|
@@ -6,10 +6,10 @@ import io.ktor.server.request.*
|
|
|
import io.ktor.server.response.*
|
|
import io.ktor.server.response.*
|
|
|
import io.ktor.server.routing.*
|
|
import io.ktor.server.routing.*
|
|
|
import org.koin.ktor.ext.inject
|
|
import org.koin.ktor.ext.inject
|
|
|
-import re.chasam.models.TournamentImpl
|
|
|
|
|
-import re.chasam.models.Player
|
|
|
|
|
|
|
+import re.chasam.models.impl.TournamentImpl
|
|
|
|
|
+import re.chasam.models.impl.Player
|
|
|
|
|
|
|
|
-fun Route.usersRouting() {
|
|
|
|
|
|
|
+fun Route.playersRouting() {
|
|
|
|
|
|
|
|
val tournamentImpl by inject<TournamentImpl>()
|
|
val tournamentImpl by inject<TournamentImpl>()
|
|
|
route("/players") {
|
|
route("/players") {
|