We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af9911b commit 4e8b118Copy full SHA for 4e8b118
lib/grape/api.rb
@@ -282,13 +282,13 @@ def after(&block)
282
imbue(:afters, [block])
283
end
284
285
- def patch(paths = ['/'], options = {}, &block); route('PATCH', paths, options, &block) end
286
def get(paths = ['/'], options = {}, &block); route('GET', paths, options, &block) end
287
def post(paths = ['/'], options = {}, &block); route('POST', paths, options, &block) end
288
def put(paths = ['/'], options = {}, &block); route('PUT', paths, options, &block) end
289
def head(paths = ['/'], options = {}, &block); route('HEAD', paths, options, &block) end
290
def delete(paths = ['/'], options = {}, &block); route('DELETE', paths, options, &block) end
291
def options(paths = ['/'], options = {}, &block); route('OPTIONS', paths, options, &block) end
+ def patch(paths = ['/'], options = {}, &block); route('PATCH', paths, options, &block) end
292
293
def namespace(space = nil, &block)
294
if space || block_given?
0 commit comments