Project initialized

This commit is contained in:
stefan
2025-04-17 13:02:03 +02:00
commit 12c723cad2
28 changed files with 3685 additions and 0 deletions
@@ -0,0 +1,20 @@
package at.mocode
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
fun main() {
embeddedServer(Netty, port = SERVER_PORT, host = "0.0.0.0", module = Application::module)
.start(wait = true)
}
fun Application.module() {
routing {
get("/") {
call.respondText("Ktor: ${Greeting().greet()}")
}
}
}