Skip to content

Instantly share code, notes, and snippets.

@casualjim
Created August 12, 2011 19:32
Show Gist options
  • Select an option

  • Save casualjim/1142800 to your computer and use it in GitHub Desktop.

Select an option

Save casualjim/1142800 to your computer and use it in GitHub Desktop.
get("/:slug(.:format)(/)") {
if (params.get('slug).map(_.toLowerCase(ENGLISH)) == Some("index.json")) pass()
}
get("/(index(.:format))") {
}
case get(matcher) => {
action
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment