Skip to content

Instantly share code, notes, and snippets.

@jacobappleton
Created September 8, 2015 05:25
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 jacobappleton/764628e35f87718d55ef to your computer and use it in GitHub Desktop.
Save jacobappleton/764628e35f87718d55ef to your computer and use it in GitHub Desktop.
pathPrefix("api") {
path("regex") {
post {
entity(as[String]) { pattern =>
complete {
(regexWorker ? pattern).mapTo[RegexResponse]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment