mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Fixing exclude method in Handler (#507)
This commit is contained in:
parent
4ccea8d6a1
commit
482b4a6e7d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue