Class: ThinkFeelDoEngine::KeepAliveController

Inherits:
ApplicationController show all
Defined in:
app/controllers/think_feel_do_engine/keep_alive_controller.rb

Overview

Authenticate user

Constant Summary

Constants inherited from ApplicationController

ApplicationController::CSRF_COOKIE_NAME, ApplicationController::CSRF_HEADER_NAME, ApplicationController::INACTIVE_MESSAGE, ApplicationController::ROOT_URI

Instance Method Summary collapse

Methods inherited from ApplicationController

#access_denied_resource_path, #after_sign_in_path_for, #after_sign_out_path_for

Instance Method Details

#indexObject

GET /arms



9
10
11
12
13
14
15
# File 'app/controllers/think_feel_do_engine/keep_alive_controller.rb', line 9

def index
  if @authenticated
    render nothing: true, status: :ok
  else
    render nothing: true, status: :unauthorized
  end
end