Packages

Usher Web is a web interface for the Usher invitation link management library.

Current section

Files

Jump to
usher_web lib usher web config.ex
Raw

lib/usher/web/config.ex

defmodule Usher.Web.Config do
@moduledoc """
Provides functions to retrieve configuration values for the Usher Web application.
"""
@doc """
Returns the URL where users will be redirected when they click invitation links.
Defaults to "http://localhost:4000" if not configured.
"""
@spec invitation_redirect_url() :: String.t()
def invitation_redirect_url do
Application.get_env(:usher_web, :invitation_redirect_url, "http://localhost:4000")
end
end