module Spine::Routing::Syntax::Verbs

Public Instance Methods

delete(pattern, options) click to toggle source
# File lib/spine/routing/syntax/verbs.rb, line 21
def delete(pattern, options)
  match(pattern, options.merge(verb: :delete))
end
get(pattern, options) click to toggle source
# File lib/spine/routing/syntax/verbs.rb, line 5
def get(pattern, options)
  match(pattern, options.merge(verb: :get))
end
patch(pattern, options) click to toggle source
# File lib/spine/routing/syntax/verbs.rb, line 17
def patch(pattern, options)
  match(pattern, options.merge(verb: :patch))
end
post(pattern, options) click to toggle source
# File lib/spine/routing/syntax/verbs.rb, line 9
def post(pattern, options)
  match(pattern, options.merge(verb: :post))
end
put(pattern, options) click to toggle source
# File lib/spine/routing/syntax/verbs.rb, line 13
def put(pattern, options)
  match(pattern, options.merge(verb: :put))
end