Changeset View
Changeset View
Standalone View
Standalone View
lib/couch.ex
Context not available. | |||||
end | end | ||||
defp prepare_request(path, headers \\ [], params \\ [], options \\ []) do | defp prepare_request(path, headers \\ [], params \\ [], options \\ []) do | ||||
config = Application.get_env(:lsg, :couch) | config = Application.get_env(:nola, :couch) | ||||
base_url = Keyword.get(config, :url, "http://localhost:5984") | base_url = Keyword.get(config, :url, "http://localhost:5984") | ||||
url = URI.merge(base_url, Path.join(path)) |> to_string() | url = URI.merge(base_url, Path.join(path)) |> to_string() | ||||
Context not available. |