From 80e7bbbad8bf2f23e98f88b7d9b5f9757cf25ccb Mon Sep 17 00:00:00 2001 From: Igor Dunaev Date: Sat, 9 Dec 2023 22:34:10 +0300 Subject: [PATCH] Change server port to match tutorial --- src/jvmMain/kotlin/center.sciprog.application/Server.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jvmMain/kotlin/center.sciprog.application/Server.kt b/src/jvmMain/kotlin/center.sciprog.application/Server.kt index db48709..c9cf53c 100644 --- a/src/jvmMain/kotlin/center.sciprog.application/Server.kt +++ b/src/jvmMain/kotlin/center.sciprog.application/Server.kt @@ -32,7 +32,7 @@ fun HTML.index() { } fun main() { - embeddedServer(Netty, port = 8081, host = "127.0.0.1") { + embeddedServer(Netty, port = 8080, host = "127.0.0.1") { routing { get("/") { call.respondHtml(HttpStatusCode.OK, HTML::index)