Skip to content

Instantly share code, notes, and snippets.

View vdmgolub's full-sized avatar

Vadim Golub vdmgolub

View GitHub Profile
### Keybase proof
I hereby claim:
* I am vdmgolub on github.
* I am vdmgolub (https://keybase.io/vdmgolub) on keybase.
* I have a public key whose fingerprint is C8A0 4702 DFE9 1CF4 A353 8D84 B162 7E99 70D4 1022
To claim this, I am signing this object:
@vdmgolub
vdmgolub / routes.rb
Created July 22, 2013 12:10
API versioning with constraints
namespace :api do
constrants ApiVersion.new(1) do
scope :module => :v1 do
resource :app do
resources :indices
end
end
end
constraints ApiVersion.new(2) do