From 452374a2854c08d2ec4f84f3b3de2fb5a0fa3e27 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Mon, 18 Apr 2016 15:23:11 -0300 Subject: [PATCH] Closes #2887; Support for GET method in @integrations (#2932) --- packages/rocketchat-integrations/server/api/api.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/rocketchat-integrations/server/api/api.coffee b/packages/rocketchat-integrations/server/api/api.coffee index 7f74202c417d..07bfb411db34 100644 --- a/packages/rocketchat-integrations/server/api/api.coffee +++ b/packages/rocketchat-integrations/server/api/api.coffee @@ -246,8 +246,8 @@ RocketChat.API.v1.addRoute 'integrations.remove', authRequired: true, return removeIntegration @bodyParams, @user -Api.addRoute ':integrationId/:userId/:token', authRequired: true, {post: executeIntegrationRest} -Api.addRoute ':integrationId/:token', authRequired: true, {post: executeIntegrationRest} +Api.addRoute ':integrationId/:userId/:token', authRequired: true, {post: executeIntegrationRest, get: executeIntegrationRest} +Api.addRoute ':integrationId/:token', authRequired: true, {post: executeIntegrationRest, get: executeIntegrationRest} Api.addRoute 'sample/:integrationId/:userId/:token', authRequired: true, {get: integrationSampleRest} Api.addRoute 'sample/:integrationId/:token', authRequired: true, {get: integrationSampleRest}