Skip to content

Commit

Permalink
feat: add head and options http methods
Browse files Browse the repository at this point in the history
  • Loading branch information
aristotelesbr committed Feb 8, 2024
1 parent 5745033 commit 872210e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/lennarb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ def call(env)
# @returns [void]
#
def get(path, &block) = add_route(path, :GET, block)
def post(path, &block) = add_route(path, :POST, block)
def put(path, &block) = add_route(path, :PUT, block)
def post(path, &block) = add_route(path, :POST, block)
def head(path, &block) = add_route(path, :HEAD, block)
def patch(path, &block) = add_route(path, :PATCH, block)
def delete(path, &block) = add_route(path, :DELETE, block)
def options(path, &block) = add_route(path, :OPTIONS, block)

private

Expand Down

0 comments on commit 872210e

Please sign in to comment.