FEATURE: adds list#(unread|new) to user api key routes (#6494)

This commit is contained in:
Joffrey JAFFEUX 2018-10-15 15:48:35 +02:00
parent 38ad1b96cb
commit b8aec7777c

View File

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