add: user public keys controller

This commit is contained in:
2021-07-14 15:38:14 +08:00
parent 2ddf1dbd01
commit 998381585a
9 changed files with 502 additions and 0 deletions

View 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