defmodule LSGWeb.PageController do use LSGWeb, :controller def index(conn, _params) do render conn, "index.html" end def api(conn, _params) do render conn, "api.html" end def irc(conn, _) do bot_helps = for mod <- Application.get_env(:lsg, :irc)[:handlers] do mod.irc_doc() end render conn, "irc.html", bot_helps: bot_helps 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