mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Fix #3265
This commit is contained in:
parent
0d7e2afba4
commit
9e58bc19c4
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module Invidious::Routing
|
||||||
{% for http_method in {"get", "post", "delete", "options", "patch", "put"} %}
|
{% for http_method in {"get", "post", "delete", "options", "patch", "put"} %}
|
||||||
|
|
||||||
macro {{http_method.id}}(path, controller, method = :handle)
|
macro {{http_method.id}}(path, controller, method = :handle)
|
||||||
unless !Kemal::Utils.path_starts_with_slash?(\{{path}})
|
unless Kemal::Utils.path_starts_with_slash?(\{{path}})
|
||||||
raise Kemal::Exceptions::InvalidPathStartException.new({{http_method}}, \{{path}})
|
raise Kemal::Exceptions::InvalidPathStartException.new({{http_method}}, \{{path}})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue