Sha256: 516639dbc7b3b8b497ced0dc299dca8e27e2c6469371ba525e39b85456628b1a
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
PicoApi.configure do |config| ## the base namespace of your app config.namespace = "<%= @camelcased_name %>" ## the root directory where all the business logic resides config.lib_path = "lib/<%= @snakecased_name %>" config.logger = Logger.new(STDOUT) if ENV['LOG_TO_STDOUT'] == 'true' ## Add your custom exception mappings -> { exception: status_code }. # PicoApi serializes runtime exceptions to json-api specification error objects config.errors_map = { StandardError: :unprocessable_entity }.freeze end
Version data entries
3 entries across 3 versions & 1 rubygems