Skip to content

Commit 8e53cbd

Browse files
1 parent 08bc9a0 commit 8e53cbd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

app/controllers/keys_controller.rb

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class KeysController < ApplicationController
55
before_action :authorize
66
before_action :find_key, only: [ :show, :edit, :update, :destroy, :copy ]
77
before_action :find_keys, only: [ :context_menu ]
8+
accept_api_auth :index, :show
89

910
helper :sort
1011
include SortHelper
@@ -64,6 +65,12 @@ def index
6465
end
6566

6667
@keys.map(&:decrypt!)
68+
69+
respond_to do |format|
70+
format.html
71+
format.pdf
72+
format.json { render json: @keys }
73+
end
6774
end
6875

6976
def new

0 commit comments

Comments
 (0)