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