Feature: API to list the agents for the inbox (#438)

Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Pranav Raj S
2020-01-21 19:56:58 +05:45
committed by Sojan Jose
parent a2b025b548
commit 95fb6893b4
4 changed files with 54 additions and 0 deletions

View 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