24 lines
553 B
Elixir
24 lines
553 B
Elixir
defmodule Parrhesia.Application do
|
|
@moduledoc false
|
|
|
|
use Application
|
|
|
|
@impl true
|
|
def start(_type, _args) do
|
|
children = [
|
|
Parrhesia.Telemetry,
|
|
Parrhesia.Config,
|
|
Parrhesia.Storage.Supervisor,
|
|
Parrhesia.Subscriptions.Supervisor,
|
|
Parrhesia.Auth.Supervisor,
|
|
Parrhesia.Policy.Supervisor,
|
|
Parrhesia.Web.Endpoint,
|
|
Parrhesia.Web.MetricsEndpoint,
|
|
Parrhesia.Tasks.Supervisor
|
|
]
|
|
|
|
opts = [strategy: :one_for_one, name: Parrhesia.Supervisor]
|
|
Supervisor.start_link(children, opts)
|
|
end
|
|
end
|