Class: Knocknock::AuthTokensController

Inherits:
ActionController::API
  • Object
show all
Defined in:
app/controllers/knocknock/auth_tokens_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



6
7
8
# File 'app/controllers/knocknock/auth_tokens_controller.rb', line 6

def create
  render json: auth_token, status: :created
end

#destroyObject



10
11
12
13
# File 'app/controllers/knocknock/auth_tokens_controller.rb', line 10

def destroy
  @access_token.destroy
  head :ok
end