hmole
03/11/2020, 1:47 PMLocation
stops workingif I add an optional "packaging" parameter which is supposed to come from query? Uncommenting packaging property makes this location 404, works otherwise.
Is there another hidded knowledge when attempting to work with locations besides incorrect imports?
Ktor version is 1.1.2
@Location(path = "{artifact}/{version}")
data class Request(
val artifact: String,
val version: String/*,
val packaging: String*/
)
fun Application.init() {
routing {
route("myRoute") {
get <Request> { request -> call.respond("") }
head<Request> { request -> call.respond("") }
}
}
}
Evan R.
03/11/2020, 8:31 PMpackaging
query param?