2022-12-08 11:51:59 +08:00
|
|
|
class Api::V1::Projects::CodeStatsController < Api::V1::BaseController
|
|
|
|
|
before_action :require_public_and_member_above, only: [:index]
|
|
|
|
|
|
|
|
|
|
def index
|
2023-05-17 21:18:26 +08:00
|
|
|
@result_object = Api::V1::Projects::CodeStats::ListService.call(@project, {ref: params[:ref]}, @project.owner&.gitea_token)
|
2023-05-17 21:04:37 +08:00
|
|
|
# puts @result_object
|
2022-12-08 11:51:59 +08:00
|
|
|
end
|
|
|
|
|
end
|