mirror of
https://github.com/jlengrand/ktor-sample-coolify.git
synced 2026-03-10 08:31:18 +00:00
Merge pull request #2 from jlengrand/feat/automated-preview-branch-test
Feat/automated preview branch test
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -34,3 +34,4 @@ out/
|
|||||||
|
|
||||||
### VS Code ###
|
### VS Code ###
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.DS_Store
|
||||||
|
|||||||
@@ -9,5 +9,13 @@ fun Application.configureRouting() {
|
|||||||
get("/") {
|
get("/") {
|
||||||
call.respondText("Hello World!")
|
call.respondText("Hello World!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get("/user/{name}"){
|
||||||
|
call.respondText("Hello ${call.parameters["name"]}!")
|
||||||
|
}
|
||||||
|
|
||||||
|
get("/mood/{mood}"){
|
||||||
|
call.respondText("Are you feeling ${call.parameters["mood"]}?")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user