blob: 58e37b4d03f08ff72962d81a6fbc971de014b8ba (
plain) (
tree)
|
|
defmodule ElixirHelloWorld.TopPageHandler do
def init(_transport, req, []) do
{:ok, req, nil}
end
def handle(req, state) do
{:ok, req} = :cowboy_req.reply(200, [], "Hello world!", req)
{:ok, req, state}
end
def terminate(_reason, _req, _state), do: :ok
end
|