Invidious is an alternative front-end to YouTube
Fix #3265
Samantaz Fox9e58bc19c4ba
diff --git a/src/invidious/routing.cr b/src/invidious/routing.crindex b1cef086..f409f13c 100644--- a/src/invidious/routing.cr+++ b/src/invidious/routing.cr@@ -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