neworldlt
04/19/2018, 1:12 PMwait = true
waits till thread completes. Without it application will be closed. Maybe you should try:
fun main(args: Array<String>) {
embeddedServer(Netty, port = 8080, module = Application::apiModule).start(wait = false)
embeddedServer(Netty, port = 9090, module = Application::internalModule).start(wait = true)
}