https://kotlinlang.org logo
#ktor
Title
# ktor
h

Hamza

07/25/2019, 4:10 PM
Copy code
get("/{*}") {
            call.respond("hello")
        }
didn't work for
/
and
/{anything}/{something}
*
matches a single component, exactly one
h

Hamza

07/26/2019, 12:20 AM
so no way to match all routes? 😞
currently im using this as an alternate
Copy code
get("/") { call.respond("OK") }
        get("/{*}") { call.respond("OK") }
        get("/{*}/{*}") { call.respond("OK") }
        get("/{*}/{*}/{*}") { call.respond("OK") }
n

Nicholas DeLello

08/01/2019, 11:40 PM
{path...} works
2 Views