Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
17
lib/service/pictures/pictures.ex
Normal file
17
lib/service/pictures/pictures.ex
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user