Skip to content
Snippets Groups Projects
Verified Commit 9ff49bbc authored by Réthelyi Bálint's avatar Réthelyi Bálint :no_mouth:
Browse files

change api/v2 path

parent 623143aa
Branches
Tags
No related merge requests found
Pipeline #19771 passed
...@@ -9,14 +9,14 @@ import space.rethelyi.model.toResponseV2 ...@@ -9,14 +9,14 @@ import space.rethelyi.model.toResponseV2
fun Application.configureRouting() { fun Application.configureRouting() {
routing { routing {
// get("/") { get("/app") {
// call.respondRedirect("https://play.google.com/store/apps/details?id=space.rethelyi.mosogepsch") call.respondRedirect("https://play.google.com/store/apps/details?id=space.rethelyi.mosogepsch")
// } }
get("/api/v2/laundry-rooms/") { get("/api/v2") {
call.respond(mapOf("floors" to floors.map { it.value.toResponseV2() })) 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() })) call.respond(mapOf("floors" to floors.map { it.value.toResponseV1() }))
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment