mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:08:32 +08:00
DEV: Allow user api key scope for notifications#totals (#26205)
The `/notifications/totals` route is a stripped down version of `notifications#index`. This just allows the mobile app to use this new route.
This commit is contained in:
@ -10,6 +10,7 @@ class UserApiKeyScope < ActiveRecord::Base
|
||||
notifications: [
|
||||
RouteMatcher.new(methods: :post, actions: "message_bus"),
|
||||
RouteMatcher.new(methods: :get, actions: "notifications#index"),
|
||||
RouteMatcher.new(methods: :get, actions: "notifications#totals"),
|
||||
RouteMatcher.new(methods: :put, actions: "notifications#mark_read"),
|
||||
],
|
||||
session_info: [
|
||||
|
Reference in New Issue
Block a user