17 lines
398 B
Kotlin
17 lines
398 B
Kotlin
package eventDemo
|
|
|
|
import eventDemo.configuration.configure
|
|
import io.ktor.server.application.Application
|
|
import io.ktor.server.engine.embeddedServer
|
|
import io.ktor.server.netty.Netty
|
|
|
|
fun main() {
|
|
embeddedServer(
|
|
factory = Netty,
|
|
port = 8080,
|
|
host = "0.0.0.0",
|
|
module = Application::configure,
|
|
watchPaths = listOf("classes"),
|
|
).start(wait = true)
|
|
}
|