Sha256: 595e10d1752d4b893215032ded0cddb2335419b4380d1771f9dbeeb5f337ca70
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
PicoApi.configure do |config| ## the base namespace of your app config.namespace = "<%= @project_name_camelcased %>" ## the root directory where all the business logic resides config.lib_path = "lib/<%= @project_name_snakecased %>" ## 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pico_api-0.0.2 | lib/pico_api/generators/templates/config/configuration.erb |
pico_api-0.0.1 | lib/pico_api/generators/templates/config/configuration.erb |