Skip to content
This repository was archived by the owner on Oct 9, 2022. It is now read-only.

Commit 53cab89

Browse files
authored
Update routing.rst
1 parent 8793ba8 commit 53cab89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routing.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A simple example
2626
2727
fun main() {
2828
Kweb(port = 16097) {
29-
doc.body.new {
29+
doc.body {
3030
route {
3131
path("/users/{userId}") { params ->
3232
val userId = params.getValue("userId")
@@ -95,7 +95,7 @@ Here is a more realistic example:
9595
9696
fun main() {
9797
Kweb(port = 16097) {
98-
doc.body.new {
98+
doc.body {
9999
route {
100100
path("/") {
101101
url.value = "/number/1"

0 commit comments

Comments
 (0)