Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

5_How_to_expose_an_API_endpoint

5_How_to_expose_an_API_endpoint.livemd

5_How_to_expose_an_API_endpoint

Mix.install([
  {:kino, "~> 0.14.2"},
  {:plug, "~> 1.16"}
])

Section

Kino.Proxy.listen(fn conn ->
  Plug.Conn.send_resp(conn, 200, "hexafarms return from Elixir")
end)

For testing, use path below.

/proxy/sessions/:id/*path