iachat/app/controllers/api
Sojan Jose 18bfda35b3
chore: Fix agent API returning 500 error (#9193)
- We were using the @user object in the view, which wasn't available when using api_access_token.
- Also replaced the object to @agent and added additional specs to confirm the right object

fixes: https://linear.app/chatwoot/issue/CW-3185/agent-create-api-throwing-500-response
ref: https://discord.com/channels/647412545203994635/1219928138163949568/1219928138163949568
2024-04-04 19:44:47 +05:30
..
v1 chore: Fix agent API returning 500 error (#9193) 2024-04-04 19:44:47 +05:30
v2 feat: Add backend APIs for the bot metrics (#9031) 2024-03-01 08:20:20 -08:00
base_controller.rb chore: Ensure privilege validations for API endpoints (#2224) 2021-06-11 11:44:31 +05:30