Skip to content

Instantly share code, notes, and snippets.

@plutov
Created October 10, 2017 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plutov/87a29857a19efd937dee3b6c4c316914 to your computer and use it in GitHub Desktop.
Save plutov/87a29857a19efd937dee3b6c4c316914 to your computer and use it in GitHub Desktop.
defmodule Elixirrest do
use Maru.Router
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
worker(Elixirrest.Agent, [])
]
opts = [strategy: :one_for_one, name: Elixirrest.Supervisor]
Supervisor.start_link(children, opts)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment