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 committed by GitHub
parent d76658ff8c
commit f6eff38c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

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