mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 15:25:56 +08:00
7 lines
273 B
Ruby
7 lines
273 B
Ruby
class Api::V1::Projects::CommitsController < Api::V1::BaseController
|
|
before_action :require_public_and_member_above, only: [:diff]
|
|
|
|
def diff
|
|
@result_object = Api::V1::Projects::Commits::DiffService.call(@project, params[:sha], current_user&.gitea_token)
|
|
end
|
|
end |