mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-07-13 21:44:32 +08:00
新增:获取单个提交的blame信息接口以及文档
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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)
|
||||
puts @result_object
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user