Created
February 19, 2013 01:25
-
-
Save boxxxie/4982312 to your computer and use it in GitHub Desktop.
I want a route that matches on:
/company/32423432
/companies/2342343242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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