Fixing exclude method in Handler (#507)

This commit is contained in:
ikarigeorge 2018-11-10 22:58:41 +01:00 committed by Serdar Dogruyol
parent 4ccea8d6a1
commit 482b4a6e7d

View file

@ -20,6 +20,8 @@ module Kemal
macro exclude(paths, method = "GET")
class_name = {{@type.name}}
method_downcase = {{method}}.downcase
class_name_method = "#{class_name}/#{method_downcase}"
({{paths}}).each do |path|
@@exclude_routes_tree.add class_name_method + path, '/' + method_downcase + path
end