Class: CorsController

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

Overview

Controller class handling all CORS-related requests. Implements a dummy action improving performance for requests ignoring HTTP body.

Constant Summary

Constants inherited from ApplicationController

ApplicationController::INDEX_LINK_FORMATS

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate!, #current_user, #request_occi_collection, #warden

Methods included from Mixins::ErrorHandling

#handle_auth_err, #handle_authz_err, #handle_backend_unavailable_err, #handle_internal_backend_err, #handle_invalid_resource_err, #handle_not_impl_err, #handle_parser_input_err, #handle_parser_type_err, #handle_resource_not_found_err, #handle_wrong_args_err

Instance Method Details

#indexObject

OPTIONS /[*dummy]


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

def index
  respond_with(Occi::Collection.new, {})
end