Feature: API to list the agents for the inbox (#438)
Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
13
app/controllers/api/v1/widget/inbox_members_controller.rb
Normal file
13
app/controllers/api/v1/widget/inbox_members_controller.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class Api::V1::Widget::InboxMembersController < Api::V1::Widget::BaseController
|
||||
before_action :set_web_widget
|
||||
|
||||
def index
|
||||
@inbox_members = @web_widget.inbox.inbox_members.includes(:user)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def permitted_params
|
||||
params.permit(:website_token)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user