So first I need to turn it into an object (this is...
# intellij
n
So first I need to turn it into an object (this is the refactoring I’d like IntelliJ to do)
Copy code
fun router(routes: List<PathMatchingHttpHandler>) =
    object : HttpHandler {
        operator fun invoke(request: Request): Response = ... do the routing ...
   }