Skip to content

Commit 874ac28

Browse files
JSMonkSebastianAigner
authored andcommitted
Remove unnecessary get handler
1 parent 6b9788e commit 874ac28

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/jvmMain/kotlin/Server.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ fun main() {
4141
}
4242

4343
routing {
44-
get("/") {
45-
call.respondText(
46-
this::class.java.classLoader.getResource("index.html")!!.readText(),
47-
ContentType.Text.Html
48-
)
49-
}
5044
staticResources("/", "static")
5145
route(ShoppingListItem.path) {
5246
get {
@@ -64,4 +58,4 @@ fun main() {
6458
}
6559
}
6660
}.start(wait = true)
67-
}
61+
}

0 commit comments

Comments
 (0)