add: repository webhooks

This commit is contained in:
2021-07-26 17:25:06 +08:00
parent 8905f60265
commit ebc4305ca8
9 changed files with 263 additions and 1 deletions

View 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