From 814bbba21dc71e11dde3987ed060604c9f52b519 Mon Sep 17 00:00:00 2001 From: Ryo SUETSUGU Date: Thu, 2 May 2019 10:28:15 +0900 Subject: [PATCH] enable api access --- app/controllers/webhook_settings_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/webhook_settings_controller.rb b/app/controllers/webhook_settings_controller.rb index 01db50e..c32aea6 100644 --- a/app/controllers/webhook_settings_controller.rb +++ b/app/controllers/webhook_settings_controller.rb @@ -1,5 +1,6 @@ class WebhookSettingsController < ApplicationController before_action :find_project, :authorize + accept_api_auth :create, :update, :destroy def create webhook = Webhook.new(:project_id => @project.id)