Skip to content

Instantly share code, notes, and snippets.

@ctataryn
Created March 18, 2014 13:23
Show Gist options
  • Save ctataryn/9619926 to your computer and use it in GitHub Desktop.
Save ctataryn/9619926 to your computer and use it in GitHub Desktop.
myRoute =
pathPrefix("user" / Segment) {
userId => {
path("profile") {
profileRoute(userId.toString)
}
}
}
def profileRoute(userId:String) = {
get {
pathEnd {
complete {
"Some value!"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment