diff options
Diffstat (limited to 'config/routes/jira_connect.rb')
-rw-r--r-- | config/routes/jira_connect.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config/routes/jira_connect.rb b/config/routes/jira_connect.rb new file mode 100644 index 00000000000..a3b786b60f0 --- /dev/null +++ b/config/routes/jira_connect.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +namespace :jira_connect do + # This is so we can have a named route helper for the base URL + root to: proc { [404, {}, ['']] }, as: 'base' + + get 'app_descriptor' => 'app_descriptor#show' + + namespace :events do + post 'installed' + post 'uninstalled' + end + + resources :subscriptions, only: [:index, :create, :destroy] +end |