Created
October 10, 2017 01:12
-
-
Save plutov/87a29857a19efd937dee3b6c4c316914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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