Skip to content

Instantly share code, notes, and snippets.

@mariussoutier
Created December 11, 2012 21:59
Show Gist options
  • Save mariussoutier/4262632 to your computer and use it in GitHub Desktop.
Save mariussoutier/4262632 to your computer and use it in GitHub Desktop.
# Map to language via RegEx
/$language<[a-z]{2}>/videos/:id controllers.Video.showVideo(id: Long, language: String)
# Hard-code supported languages
/de/videos/:id controllers.Video.showVideo(id: Long, language = "de")
/en/videos/:id controllers.Video.showVideo(id: Long, language = "en")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment