Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class MainVerticle(val hasDb: Boolean) : CoroutineVerticle(), CoroutineRouterSup

fun Router.routes() {
get("/json").jsonResponseCoHandler(Serializers.message) {
jsonSerializationMessage
Message("Hello, World!")
}

get("/db").jsonResponseCoHandler(Serializers.world) {
Expand Down
2 changes: 0 additions & 2 deletions frameworks/Kotlin/vertx-web-kotlinx/src/main/kotlin/Models.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import kotlin.random.Random
@Serializable
class Message(val message: String)

val jsonSerializationMessage = Message("Hello, World!")

@Serializable
data class World(val id: Int, val randomNumber: Int)

Expand Down
Loading