mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Exclude /api/v1/auth/notifications from middleware
This commit is contained in:
parent
b3e083d866
commit
267bf289c4
1 changed files with 3 additions and 2 deletions
|
@ -63,7 +63,7 @@ end
|
||||||
|
|
||||||
class FilteredCompressHandler < Kemal::Handler
|
class FilteredCompressHandler < Kemal::Handler
|
||||||
exclude ["/videoplayback", "/videoplayback/*", "/vi/*", "/ggpht/*", "/api/v1/auth/notifications"]
|
exclude ["/videoplayback", "/videoplayback/*", "/vi/*", "/ggpht/*", "/api/v1/auth/notifications"]
|
||||||
exclude ["/data_control"], "POST"
|
exclude ["/api/v1/auth/notifications", "/data_control"], "POST"
|
||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
return call_next env if exclude_match? 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) %}
|
{% for method in %w(GET POST PUT HEAD DELETE PATCH OPTIONS) %}
|
||||||
only ["/api/v1/*"], {{method}}
|
only ["/api/v1/*"], {{method}}
|
||||||
{% end %}
|
{% end %}
|
||||||
exclude ["/api/v1/auth/notifications"]
|
exclude ["/api/v1/auth/notifications"], "GET"
|
||||||
|
exclude ["/api/v1/auth/notifications"], "POST"
|
||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
return call_next env unless only_match? env
|
return call_next env unless only_match? env
|
||||||
|
|
Loading…
Reference in a new issue