We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
get
1 parent 6b9788e commit 874ac28Copy full SHA for 874ac28
src/jvmMain/kotlin/Server.kt
@@ -41,12 +41,6 @@ fun main() {
41
}
42
43
routing {
44
- get("/") {
45
- call.respondText(
46
- this::class.java.classLoader.getResource("index.html")!!.readText(),
47
- ContentType.Text.Html
48
- )
49
- }
50
staticResources("/", "static")
51
route(ShoppingListItem.path) {
52
get {
@@ -64,4 +58,4 @@ fun main() {
64
58
65
59
66
60
}.start(wait = true)
67
-}
61
+}
0 commit comments