class CORS

Overview

Implementation of a TODO application

Defined in:

controllers/cors.cr

Constant Summary

PARSER_LIST = ["application/json"]

Implementation of a TODO application

RESPONDER_LIST = ["application/json"]

Implementation of a TODO application

Class Method Summary

Instance Method Summary

Instance methods inherited from class Application

bad_media_type(error) : AC::Error::ContentResponse bad_media_type, invalid_param(error) : AC::Error::ParameterResponse invalid_param, resource_not_found(error) : AC::Error::CommonResponse resource_not_found, set_cors_headers set_cors_headers, set_request_id set_request_id

Class Method Detail

def self.base_route #

Helper for obtaining base route


def self.cors_options(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts) #

Helper methods for performing redirect_to calls


Instance Method Detail

def base_route(*args, **options) #

Helper for obtaining base route


def base_route(*args, **options, &) #

Helper for obtaining base route


def cors_options #

implements CORS


[View source]