Class: Knocknock::AuthTokensController
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Knocknock::AuthTokensController
- Defined in:
- app/controllers/knocknock/auth_tokens_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 |
# File 'app/controllers/knocknock/auth_tokens_controller.rb', line 6 def create render json: auth_token, status: :created end |
#destroy ⇒ Object
10 11 12 13 |
# File 'app/controllers/knocknock/auth_tokens_controller.rb', line 10 def destroy @access_token.destroy head :ok end |