Is there a way to handle exceptions within a `Rout...
# ktor
a
Is there a way to handle exceptions within a
Route
. e.g.
Copy code
route("api") {
    // Install exception handler here 
    get(”/foo”) {
         // Exception here
    }
}
Where exceptions can be mapped to a JSON response with custom status codes etc