Current section

Files

Jump to
paraxial lib paraxial helpers.ex
Raw

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_bans_url() do
get_base_url() <> "/api/bans"
end
def get_allows_url() do
get_base_url() <> "/api/allows"
end
def get_rules_url() do
get_base_url() <> "/api/rules"
end
end