mobilizon/lib/service/pictures/pictures.ex
Thomas Citharel ee20e03cc2
Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-11 16:46:31 +02:00

18 lines
491 B
Elixir

defmodule Mobilizon.Service.Pictures do
@moduledoc """
Module to load the service adapter defined inside the configuration.
See `Mobilizon.Service.Pictures.Provider`.
"""
@doc """
Returns the appropriate service adapter.
According to the config behind
`config :mobilizon, Mobilizon.Service.Pictures,
service: Mobilizon.Service.Pictures.Module`
"""
@spec service :: module
def service, do: get_in(Application.get_env(:mobilizon, __MODULE__), [:service])
end