Alternatively, you can use the "catch all" approac...
# http4k
s
Alternatively, you can use the "catch all" approach for your existing routes:
Copy code
import org.http4k.core.Method
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status.Companion.OK
import org.http4k.routing.bind
import org.http4k.routing.routes

fun main(args: Array<String>) {
    val handler = routes(
        "/more" bind { _: Request -> Response(OK).body("more") },
        "/{:.*}" bind { _: Request -> Response(OK).body("existing") }
    )

    val response = handler(Request(Method.GET, "/existing"))

    println(response.bodyString())
}