forked from Gitlink/forgeplus
12 lines
475 B
Ruby
12 lines
475 B
Ruby
class Api::V1::Projects::CommitsController < Api::V1::BaseController
|
|
before_action :require_public_and_member_above, only: [:index, :diff]
|
|
|
|
def index
|
|
@result_object = Api::V1::Projects::Commits::ListService.call(@project, {page: page, limit: limit, sha: params[:sha]}, current_user&.gitea_token)
|
|
puts @result_object
|
|
end
|
|
|
|
def diff
|
|
@result_object = Api::V1::Projects::Commits::DiffService.call(@project, params[:sha], current_user&.gitea_token)
|
|
end
|
|
end |