This commit is contained in:
Samantaz Fox 2022-08-13 20:23:45 +02:00
parent 0d7e2afba4
commit 9e58bc19c4
No known key found for this signature in database
GPG Key ID: F42821059186176E

View File

@ -4,7 +4,7 @@ module Invidious::Routing
{% for http_method in {"get", "post", "delete", "options", "patch", "put"} %}
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}})
end