File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
modules/jooby-lang-kotlin/src
test/kotlin/examples/kotlin Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ class KRouteGroup(b: Route.Props<Route.Group>) : Route.Props<Route.Group> by b {
164164/* *
165165 * Collection of utility class and method to make Jooby more Kotlin.
166166 */
167- class Kooby : Jooby () {
167+ open class Kooby : Jooby () {
168168 fun <T : Any > use (klass : KClass <T >): Route .Collection {
169169 return use(klass.java)
170170 }
Original file line number Diff line number Diff line change 11package examples.kotlin
22
33import org.jooby.Jooby
4+ import org.jooby.Kooby
45
5- class App : Jooby () {
6+ /* *
7+ * Use Kooby to make Jooby more Kotlin.
8+ */
9+ class App : Kooby () {
610 /* *
711 * Configure your application
812 */
913 init {
10-
11- get (" /" ) { ->
14+ get (" /" ) {
1215 " Hi Kotlin"
1316 }
1417 }
You can’t perform that action at this time.
0 commit comments