Packages
Currency Converter API
Current section
Files
Jump to
Current section
Files
lib/currency_converter_api/application.ex
defmodule CurrencyConverterApi.Application do
use Application
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
def start(_type, _args) do
import Supervisor.Spec
# Define workers and child supervisors to be supervised
children = [
# Start cache system
supervisor(CurrencyConverterApi.Cache, []),
]
# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
opts = [strategy: :one_for_one, name: CurrencyConverterApi.Supervisor]
Supervisor.start_link(children, opts)
end
end