elixir-todo-list/lib/todo/system.ex

15 lines
216 B
Elixir

defmodule Todo.System do
use Supervisor
def start_link do
Supervisor.start_link(__MODULE__, nil)
end
def init(_) do
Supervisor.init(
[Todo.Cache],
strategy: :one_for_one
)
end
end