diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-09-08 13:42:02 +0300 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-09-22 17:42:10 +0300 |
commit | 38e087e94380e095401be477c874a67a5e328a55 (patch) | |
tree | 4b28bb8c8ad95877dd58e4a0e6f7879b7190104a | |
parent | 8071dc83fa00361b7bdee6e76ef2d4a59851b154 (diff) |
Add route for integration triggers
-rw-r--r-- | app/controllers/integrations_controller.rb | 7 | ||||
-rw-r--r-- | config/routes.rb | 5 | ||||
-rw-r--r-- | spec/controllers/integrations_controller_spec.rb | 5 |
3 files changed, 17 insertions, 0 deletions
diff --git a/app/controllers/integrations_controller.rb b/app/controllers/integrations_controller.rb new file mode 100644 index 00000000000..338abf2938a --- /dev/null +++ b/app/controllers/integrations_controller.rb @@ -0,0 +1,7 @@ +class IntegrationsController < ApplicationController + respond_to :json + + def trigger + + end +end diff --git a/config/routes.rb b/config/routes.rb index 4d6ec699cbd..ebab95a8a46 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -138,6 +138,11 @@ Rails.application.routes.draw do resources :notification_settings, only: [:create, :update] # + # Integrations (trigger actions because of payload) + # + resources :integrations, only: [:trigger] + + # # Import # namespace :import do diff --git a/spec/controllers/integrations_controller_spec.rb b/spec/controllers/integrations_controller_spec.rb new file mode 100644 index 00000000000..2faaf77d1b7 --- /dev/null +++ b/spec/controllers/integrations_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe IntegrationsController, type: :controller do + +end |