I guess this might do the job: ```get("*") { ...
# ktor
m
I guess this might do the job:
Copy code
get("*") {
            call.respond(HttpStatusCode.NotFound, etc)
        }
Only matches if there is no more specific route, if I understand it correctly?
o
get("{...}")
, asterisk matches only single path segment
m
Hmm...is there a way to have a route match all paths ( + all methods)?
o
Copy code
route("{...}") {
  handle {
     …
  }
}
m
👍 ace, thanks
o
Look into source code of
get
and other builder methods when in doubt. They all in the end use the same low level facilities, and you can use them too. And build own builder methods.