You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/lib/asciinema_web/controllers/asciicast_animation_control...

13 lines
334 B
Elixir

defmodule AsciinemaWeb.AsciicastAnimationController do
use AsciinemaWeb, :controller
alias Asciinema.Asciicasts
def show(conn, %{"id" => id}) do
asciicast = Asciicasts.get_asciicast!(id)
conn
|> put_layout("simple.html")
|> render("show.html", file_url: asciicast_file_download_url(conn, asciicast))
end
end