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