接口返回license_id

This commit is contained in:
feng
2025-03-11 10:44:04 +08:00
committed by xxq250
parent e74cd4f661
commit 0baf0781f0
2 changed files with 19 additions and 24 deletions

View File

@@ -10,6 +10,7 @@ json.projects @projects do |project|
json.praises_count project.praises_count.to_i
json.forked_count project.forked_count.to_i
json.is_public project.is_public
json.license_id project.license_id
json.mirror_url project.repository&.mirror_url
json.type project&.numerical_for_project_type
json.last_update_time render_unix_time(project.updated_on)
@@ -50,7 +51,7 @@ json.projects @projects do |project|
json.name project.project_language.name
end
end
json.topics project.project_topics.each do |topic|
json.topics project.project_topics.each do |topic|
json.(topic, :id, :name)
end
end