aboutsummaryrefslogtreecommitdiff
path: root/lib/zendex/common_helpers.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zendex/common_helpers.ex')
-rw-r--r--lib/zendex/common_helpers.ex15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/zendex/common_helpers.ex b/lib/zendex/common_helpers.ex
deleted file mode 100644
index dceb56d..0000000
--- a/lib/zendex/common_helpers.ex
+++ /dev/null
@@ -1,15 +0,0 @@
-defmodule Zendex.CommonHelpers do
- @moduledoc """
- Contains common helper functions used throughout Zendex.
- """
-
- def decode_response(%{body: body}), do: Poison.decode!(body)
-
- def get_headers(authentication) do
- [{"Authorization", "Basic #{authentication}"}]
- end
-
- def get_headers(authentication, %{content_type: :json}) do
- get_headers(authentication) ++ [{"Content-Type", "application/json"}]
- end
-end