Class: Keypairs::PublicKeysController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Keypairs::PublicKeysController
- Defined in:
- lib/keypairs/public_keys_controller.rb
Overview
Endpoint to fetch the current valid keypairs.
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
20 21 22 23 24 |
# File 'lib/keypairs/public_keys_controller.rb', line 20 def index # Always cache for 1 week, our rotation interval is much more than a week expires_in 1.week, public: true render json: Keypair.cached_keyset end |