API Key

API Key Created Updated Actions
<%= @api_key.key %> <%= compact_time @api_key.created_at %> <%= compact_time @api_key.updated_at %> <%= button_to "Regenerate", user_api_key_path(CurrentUser.user), method: :put, params: { 'user[password]': @password }, remote: true %> <%= button_to "Delete", user_api_key_path(CurrentUser.user), method: :delete, params: { 'user[password]': @password } %>
<% content_for(:page_title) do %> API Key - <%= Danbooru.config.app_name %> <% end %>