mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
5 lines
243 B
Ruby
5 lines
243 B
Ruby
json.total_count @public_keys.total_count
|
|
json.public_keys @public_keys do |public_key|
|
|
json.(public_key, :id, :name, :content, :fingerprint, :created_unix)
|
|
json.created_time Time.at(public_key.created_unix).strftime("%Y/%m/%d %H:%M")
|
|
end |