mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
add: user public keys controller
This commit is contained in:
5
app/views/public_keys/index.json.jbuilder
Normal file
5
app/views/public_keys/index.json.jbuilder
Normal file
@@ -0,0 +1,5 @@
|
||||
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
|
||||
Reference in New Issue
Block a user