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:
Penar Musaraj
2024-03-15 16:06:32 -04:00
committed by GitHub
parent 8cf2f909f5
commit 531e33b303
2 changed files with 25 additions and 0 deletions

View File

@ -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: [