新增:贡献者代码行接口

This commit is contained in:
2023-04-17 11:35:28 +08:00
parent 348f7b71ba
commit 578acd7845
5 changed files with 81 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
class Api::V1::Projects::ContributorsController < Api::V1::BaseController
before_action :require_public_and_member_above, only: [:index, :stat]
# todo
def index
end
def stat
@result_object = Api::V1::Projects::Contributors::StatService.call(@project, {branch: params[:branch], pass_year: params[:pass_year], page: page, limit: limit}, current_user&.gitea_token)
end
end