diff options
Diffstat (limited to 'assessments/semiprimes/server/lib/sup.ex')
-rw-r--r-- | assessments/semiprimes/server/lib/sup.ex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/assessments/semiprimes/server/lib/sup.ex b/assessments/semiprimes/server/lib/sup.ex index ea02ce30e7b9..13a6ab374ff6 100644 --- a/assessments/semiprimes/server/lib/sup.ex +++ b/assessments/semiprimes/server/lib/sup.ex @@ -5,6 +5,7 @@ defmodule Sup do """ use Supervisor + alias Plug.Adapters.Cowboy def start_link(opts \\ []) do Supervisor.start_link(__MODULE__, :ok, opts) @@ -13,7 +14,8 @@ defmodule Sup do @impl true def init(:ok) do children = [ - Cache + Cache, + Cowboy.child_spec(scheme: :http, plug: Router, options: [port: 8000]) ] Supervisor.init(children, strategy: :one_for_one) |