mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
add: repository webhooks
This commit is contained in:
24
app/controllers/projects/webhooks_controller.rb
Normal file
24
app/controllers/projects/webhooks_controller.rb
Normal file
@@ -0,0 +1,24 @@
|
||||
class Projects::WebhooksController < Projects::BaseController
|
||||
|
||||
def index
|
||||
@webhooks = @project.webhooks
|
||||
@webhooks = kaminari_paginate(@webhooks)
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
|
||||
def destroy
|
||||
end
|
||||
|
||||
private
|
||||
def find_webhook
|
||||
@webhook = Gitea::Webhook.find_by_id(params[:id])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user