template: cleanup

This commit is contained in:
DarkCat09 2024-06-21 15:23:46 +04:00
parent 65fbbdfbe8
commit ff4a2746f2
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
2 changed files with 4 additions and 9 deletions

View file

@ -10,9 +10,4 @@ fun Application.configureSerialization() {
install(ContentNegotiation) { install(ContentNegotiation) {
json() json()
} }
routing {
get("/json/kotlinx-serialization") {
call.respond(mapOf("hello" to "world"))
}
}
} }

View file

@ -10,9 +10,9 @@ import su.coolpeople.plugins.*
class ApplicationTest { class ApplicationTest {
@Test @Test
fun testRoot() = testApplication { fun testRoot() = testApplication {
client.get("/").apply { // client.get("/").apply {
assertEquals(HttpStatusCode.OK, status) // assertEquals(HttpStatusCode.OK, status)
assertEquals("Hello World!", bodyAsText()) // assertEquals("Hello World!", bodyAsText())
} // }
} }
} }