mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
Merge branch 'develop' into standalone_develop
This commit is contained in:
8
app/controllers/api/v1/projects/code_stats_controller.rb
Normal file
8
app/controllers/api/v1/projects/code_stats_controller.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Api::V1::Projects::CodeStatsController < Api::V1::BaseController
|
||||
before_action :require_public_and_member_above, only: [:index]
|
||||
|
||||
def index
|
||||
@result_object = Api::V1::Projects::CodeStats::ListService.call(@project, {ref: params[:ref]}, current_user&.gitea_token)
|
||||
puts @result_object
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user