From 9ff49bbc3a9950d7d1c8ca34b93497e07d0b3686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20R=C3=A9thelyi?= <rethelyibalint@gmail.com> Date: Wed, 2 Mar 2022 13:21:56 +0100 Subject: [PATCH] change api/v2 path --- backend/src/main/kotlin/space/rethelyi/web/Routing.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/src/main/kotlin/space/rethelyi/web/Routing.kt b/backend/src/main/kotlin/space/rethelyi/web/Routing.kt index 4f8aef3..0dde98e 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() })) } } -- GitLab