diff --git a/.gitignore b/.gitignore index c426c32..498277c 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ out/ /.nb-gradle/ ### VS Code ### -.vscode/ \ No newline at end of file +.vscode/ +.DS_Store diff --git a/src/main/kotlin/quest/lengrand/plugins/Routing.kt b/src/main/kotlin/quest/lengrand/plugins/Routing.kt index 573f559..f6feb03 100644 --- a/src/main/kotlin/quest/lengrand/plugins/Routing.kt +++ b/src/main/kotlin/quest/lengrand/plugins/Routing.kt @@ -9,5 +9,13 @@ fun Application.configureRouting() { get("/") { call.respondText("Hello World!") } + + get("/user/{name}"){ + call.respondText("Hello ${call.parameters["name"]}!") + } + + get("/mood/{mood}"){ + call.respondText("Are you feeling ${call.parameters["mood"]}?") + } } }