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-02-02 18:30:07 +08:00
|
|
|
@result_object = Api::V1::Projects::CodeStats::ListService.call(@project, {ref: params[:ref]}, current_user&.gitea_token)
|
2023-02-28 09:26:45 +08:00
|
|
|
# puts @result_object
|
2022-12-08 11:51:59 +08:00
|
|
|
end
|
|
|
|
|
end
|