adding endpoint with parameter

This commit is contained in:
Julien Lengrand-Lambert
2024-06-10 21:25:57 +02:00
parent 28124d474d
commit bf17f20024
2 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@@ -34,3 +34,4 @@ out/
### VS Code ###
.vscode/
.DS_Store

View File

@@ -9,5 +9,9 @@ fun Application.configureRouting() {
get("/") {
call.respondText("Hello World!")
}
get("/user/{name}"){
call.respondText("Hello ${call.parameters["name"]}!")
}
}
}