diff --git a/backend/src/main/kotlin/space/rethelyi/web/Routing.kt b/backend/src/main/kotlin/space/rethelyi/web/Routing.kt index 4f8aef3c6ef34bd65595dd7bef7bb8ac4bd24279..0dde98e2da32d636d81dc207134743030821faad 100644 --- a/backend/src/main/kotlin/space/rethelyi/web/Routing.kt +++ b/backend/src/main/kotlin/space/rethelyi/web/Routing.kt @@ -9,14 +9,14 @@ import space.rethelyi.model.toResponseV2 fun Application.configureRouting() { routing { -// get("/") { -// call.respondRedirect("https://play.google.com/store/apps/details?id=space.rethelyi.mosogepsch") -// } - get("/api/v2/laundry-rooms/") { + get("/app") { + call.respondRedirect("https://play.google.com/store/apps/details?id=space.rethelyi.mosogepsch") + } + get("/api/v2") { call.respond(mapOf("floors" to floors.map { it.value.toResponseV2() })) } - get("/api/v1/laundry-rooms/") { + get("/api/v1/laundry-room/") { call.respond(mapOf("floors" to floors.map { it.value.toResponseV1() })) } }