Packages
This library allows for easy creation of the web API that the Microsoft bot framework can connect to.
Current section
Files
Jump to
Current section
Files
lib/microsoftbot_responder.ex
defmodule MicrosoftBot.Responder do
@moduledoc """
Module responsible for responding back to phoenix plug
"""
@doc """
Handle the response that needs to be sent back for the request
"""
@spec respond(Plug.Conn.t, Plug.Conn.t) :: any
def respond(%Plug.Conn{} = resp, _conn) do
Plug.Conn.send_resp(resp)
end
end