Current section
Files
Jump to
Current section
Files
lib/paraxial/helpers.ex
defmodule Paraxial.Helpers do
@moduledoc false
def get_api_key() do
Application.get_env(:paraxial, :paraxial_api_key)
end
def get_base_url() do
Application.get_env(:paraxial, :paraxial_url)
end
def get_bulk_map() do
Application.get_env(:paraxial, :bulk)
end
def get_trusted_domains() do
Application.get_env(:paraxial, :trusted_domains)
end
def get_ingest_url() do
get_base_url() <> "/api/ingest"
end
def get_abr_url() do
get_base_url() <> "/api/abr"
end
end