mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-16 09:58:50 +00:00
Add ability to disable all user notifications (#3473)
This commit is contained in:
@@ -37,7 +37,9 @@ module Invidious::Routing
|
||||
get "/feed/webhook/:token", Routes::Feeds, :push_notifications_get
|
||||
post "/feed/webhook/:token", Routes::Feeds, :push_notifications_post
|
||||
|
||||
get "/modify_notifications", Routes::Notifications, :modify
|
||||
if CONFIG.enable_user_notifications
|
||||
get "/modify_notifications", Routes::Notifications, :modify
|
||||
end
|
||||
{% end %}
|
||||
|
||||
self.register_image_routes
|
||||
@@ -260,8 +262,10 @@ module Invidious::Routing
|
||||
post "/api/v1/auth/tokens/register", {{namespace}}::Authenticated, :register_token
|
||||
post "/api/v1/auth/tokens/unregister", {{namespace}}::Authenticated, :unregister_token
|
||||
|
||||
get "/api/v1/auth/notifications", {{namespace}}::Authenticated, :notifications
|
||||
post "/api/v1/auth/notifications", {{namespace}}::Authenticated, :notifications
|
||||
if CONFIG.enable_user_notifications
|
||||
get "/api/v1/auth/notifications", {{namespace}}::Authenticated, :notifications
|
||||
post "/api/v1/auth/notifications", {{namespace}}::Authenticated, :notifications
|
||||
end
|
||||
|
||||
# Misc
|
||||
get "/api/v1/stats", {{namespace}}::Misc, :stats
|
||||
|
||||
Reference in New Issue
Block a user