mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-04 04:03:25 +08:00
8 lines
266 B
Ruby
8 lines
266 B
Ruby
if @public_key.present?
|
|
json.status 0
|
|
json.id @public_key["id"]
|
|
json.name @public_key["title"]
|
|
json.content @public_key["key"]
|
|
json.fingerprint @public_key["fingerprint"]
|
|
json.created_time @public_key["created_at"].to_time.strftime("%Y/%m/%d %H:%M")
|
|
end |