jooby-project / jooby

The modular web framework for Java and Kotlin
https://jooby.io
Apache License 2.0
1.7k stars 199 forks source link

openapi: kotlin: support kotlin anonymous object as router #3484

Closed jknack closed 1 month ago

jknack commented 1 month ago

like:

{
   mount("/path", object: Kooby ({
       get("/foo") {
              "OK"
       }
  }) {})
}

cc/ @jonaskahn