mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 21:03:52 +08:00
FEATURE: adds list#(unread|new) to user api key routes (#6494)
This commit is contained in:
parent
38ad1b96cb
commit
b8aec7777c
|
@ -6,7 +6,12 @@ class UserApiKey < ActiveRecord::Base
|
|||
message_bus: [[:post, 'message_bus']],
|
||||
push: nil,
|
||||
notifications: [[:post, 'message_bus'], [:get, 'notifications#index'], [:put, 'notifications#mark_read']],
|
||||
session_info: [[:get, 'session#current'], [:get, 'users#topic_tracking_state']]
|
||||
session_info: [
|
||||
[:get, 'session#current'],
|
||||
[:get, 'users#topic_tracking_state'],
|
||||
[:get, 'list#unread'],
|
||||
[:get, 'list#new']
|
||||
]
|
||||
}
|
||||
|
||||
belongs_to :user
|
||||
|
|
Loading…
Reference in New Issue
Block a user