Invidious is an alternative front-end to YouTube
Exclude /api/v1/auth/notifications from middleware
Omar Roth267bf289c494
diff --git a/src/invidious/helpers/handlers.cr b/src/invidious/helpers/handlers.crindex 4e73df51..216f9b5d 100644--- a/src/invidious/helpers/handlers.cr+++ b/src/invidious/helpers/handlers.cr@@ -63,7 +63,7 @@ endclass FilteredCompressHandler < Kemal::Handlerexclude ["/videoplayback", "/videoplayback/*", "/vi/*", "/ggpht/*", "/api/v1/auth/notifications"]- exclude ["/data_control"], "POST"+ exclude ["/api/v1/auth/notifications", "/data_control"], "POST"def call(env)return call_next env if exclude_match? env@@ -139,7 +139,8 @@ class APIHandler < Kemal::Handler{% for method in %w(GET POST PUT HEAD DELETE PATCH OPTIONS) %}only ["/api/v1/*"], {{method}}{% end %}- exclude ["/api/v1/auth/notifications"]+ exclude ["/api/v1/auth/notifications"], "GET"+ exclude ["/api/v1/auth/notifications"], "POST"def call(env)return call_next env unless only_match? env