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

Commit

Permalink
Update routing.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 8, 2020
1 parent 8793ba8 commit 53cab89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ A simple example
fun main() {
Kweb(port = 16097) {
doc.body.new {
doc.body {
route {
path("/users/{userId}") { params ->
val userId = params.getValue("userId")
Expand Down Expand Up @@ -95,7 +95,7 @@ Here is a more realistic example:
fun main() {
Kweb(port = 16097) {
doc.body.new {
doc.body {
route {
path("/") {
url.value = "/number/1"
Expand Down

0 comments on commit 53cab89

Please sign in to comment.