Class: Api::V1::HomeController

Inherits:
BaseController show all
Defined in:
app/controllers/api/v1/home_controller.rb

Instance Method Summary collapse

Methods included from Api::Version1

#api_version

Methods inherited from BaseController

#get_resource, #resource_class, #resource_name, #resource_scope

Methods included from Foreman::ThreadSession::Cleaner

#clear_thread, included

Instance Method Details

#indexObject


8
9
10
11
# File 'app/controllers/api/v1/home_controller.rb', line 8

def index
  # we need to load apipie documentation to show all the links.
  Apipie.reload_documentation if Apipie.configuration.reload_controllers?
end

#route_errorObject


18
19
20
# File 'app/controllers/api/v1/home_controller.rb', line 18

def route_error
  render_error 'route_error', :status => :not_found
end

#statusObject


15
16
# File 'app/controllers/api/v1/home_controller.rb', line 15

def status
end