Packages

DSL for building JSON APIs fast. Creates endpoint views, renders linked data automatically.

Current section

Files

Jump to
carve lib config.ex
Raw

lib/config.ex

defmodule Carve.Config do
@moduledoc """
Handles configuration for Carve.
"""
@doc """
Retrieves the configuration for Carve.
"""
def get do
Application.get_env(:carve, __MODULE__, [])
end
@doc """
Gets a specific configuration value.
"""
def get(key, default \\ nil) do
get()
|> Keyword.get(key, default)
end
end