|
|
@ -2,11 +2,12 @@ module Webhooks |
|
|
|
module Outgoing |
|
|
|
module Outgoing |
|
|
|
class AdminController < ::ApplicationController |
|
|
|
class AdminController < ::ApplicationController |
|
|
|
layout 'admin' |
|
|
|
layout 'admin' |
|
|
|
menu_item :plugin_webhooks |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
before_action :require_admin |
|
|
|
before_action :require_admin |
|
|
|
before_action :find_webhook, only: [:show, :edit, :update, :destroy] |
|
|
|
before_action :find_webhook, only: [:show, :edit, :update, :destroy] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
menu_item :plugin_webhooks |
|
|
|
|
|
|
|
|
|
|
|
def index |
|
|
|
def index |
|
|
|
@webhooks = webhook_class.all |
|
|
|
@webhooks = webhook_class.all |
|
|
|
end |
|
|
|
end |
|
|
|