module Metova::Versioning::RouterDSL

Public Instance Methods

version(version, &block) click to toggle source
# File lib/metova/versioning/router_dsl.rb, line 5
def version(version, &block)
  scope constraints: Metova::Versioning::Constraints.new(version), &block
  match '(*catchall)', to: UnsupportedVersionApp.new, via: [:get, :post, :put, :delete]
end