Skip to content

Commit

Permalink
Merge pull request #59 from triplepointfive/head_req_doc_fix
Browse files Browse the repository at this point in the history
Fix docs for head route
  • Loading branch information
jodosha committed Jun 9, 2015
2 parents 8a9d801 + ec5d1bb commit 09a9941
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/lotus/router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ module Lotus
#
# endpoint = ->(env) { [200, {}, ['Welcome to Lotus::Router!']] }
# router = Lotus::Router.new do
# get '/', to: endpoint
# get '/', to: endpoint # => get and head requests
# post '/', to: endpoint
# put '/', to: endpoint
# patch '/', to: endpoint
# delete '/', to: endpoint
# head '/', to: endpoint
# options '/', to: endpoint
# trace '/', to: endpoint
# end
Expand Down

0 comments on commit 09a9941

Please sign in to comment.