Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • development
  • analytics
  • mock
  • ui
  • interactor
  • room
  • retrofit
  • travis
  • bugfix
  • mvp
  • 0.6
  • 0.5
  • 0.4
  • 0.3
  • 0.2
16 results

proguard-rules.pro

Blame
  • Routing.kt 671 B
    package space.rethelyi.web
    
    import io.ktor.application.*
    import io.ktor.response.*
    import io.ktor.routing.*
    import space.rethelyi.floors
    import space.rethelyi.model.toResponseV1
    import space.rethelyi.model.toResponseV2
    
    fun Application.configureRouting() {
        routing {
            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-room/") {
                call.respond(mapOf("floors" to floors.map { it.value.toResponseV1() }))
            }
        }
    }