defmodule LSGWeb.PageController do use LSGWeb, :controller def index(conn, _params) do render conn, "index.html" end def icecast(conn, _params) do conn |> json(LSG.IcecastAgent.get) end def widget(conn, options) do icecast = LSG.IcecastAgent.get conn |> put_layout(false) |> render("widget.html", icecast: icecast) end end