gitlink-forgeplus/app/views/api/v1/projects/branches/index.json.jbuilder

4 lines
187 B
Ruby

json.total_count @result_object[:total_data].to_i
json.branches @result_object[:data].each do |branch|
json.partial! "api/v1/projects/branches/simple_gitea_detail", branch: branch
end