22 lines
442 B
Elixir
22 lines
442 B
Elixir
defmodule Hunter.Config do
|
|
@moduledoc """
|
|
Hunter configuration.
|
|
"""
|
|
|
|
def hunter_api do
|
|
Application.get_env(:hunter, :hunter_api, Hunter.Api.HTTPClient)
|
|
end
|
|
|
|
def api_base_url do
|
|
Application.get_env(:hunter, :api_base_url, "https://mastodon.social")
|
|
end
|
|
|
|
def home do
|
|
Path.expand(System.get_env("HUNTER_HOME") || "~/.hunter")
|
|
end
|
|
|
|
def http_options do
|
|
Application.get_env(:hunter, :http_options, [])
|
|
end
|
|
end
|