Skip to content

Instantly share code, notes, and snippets.

@KunalChaubal
Created June 11, 2020 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KunalChaubal/69460fb8d200a020bec1b9a15a05362e to your computer and use it in GitHub Desktop.
Save KunalChaubal/69460fb8d200a020bec1b9a15a05362e to your computer and use it in GitHub Desktop.
fun Route.customer(customerRepo: CustomerRepo) {
route("/customer") {
get("/{customerId}") {
val customerId = call.parameters["customerId"]?.toInt()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment