package {{package}}

import io.jooby.kt.Kooby
import io.jooby.kt.runApp
import io.jooby.{{serverPackageName}}.{{serverClassName}}
{{#if openapi}}
import io.jooby.OpenAPIModule
{{/if}}

class App: Kooby({
{{#if openapi}}
  install(OpenAPIModule())
{{/if}}
{{#if mvc}}
  mvc(Controller_())
{{else}}
  get("/") {
    "Welcome to Jooby!"
  }
{{/if}}
})

fun main(args: Array<String>) {
  runApp(args, {{serverClassName}}(), ::App)
}
