Current section

Files

Jump to
ami lib ami application.ex
Raw

lib/ami/application.ex

defmodule Ami.Application do
@moduledoc """
The Ami Application Service.
The ami system business domain lives in this application.
Exposes API to clients such as the `AmiWeb` application
for use in channels, controllers, and elsewhere.
"""
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
Supervisor.start_link(
[
supervisor(Ami.Repo, [])
],
strategy: :one_for_one,
name: Ami.Supervisor
)
end
end