Skip to content

Instantly share code, notes, and snippets.

@boxxxie
Created February 19, 2013 01: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 boxxxie/4982312 to your computer and use it in GitHub Desktop.
Save boxxxie/4982312 to your computer and use it in GitHub Desktop.
I want a route that matches on: /company/32423432 /companies/2342343242
(defn company-context [routes]
(context ["/company/:company-id" :company-id #"[0-9]+"] [] routes)
(context ["/companies/:company-id" :company-id #"[0-9]+"] [] routes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment