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/web/controllers/asciicast_animation_control...

13 lines
322 B
Elixir

defmodule Asciinema.AsciicastAnimationController do
use Asciinema.Web, :controller
alias Asciinema.{Repo, Asciicast}
def show(conn, %{"id" => id}) do
asciicast = Repo.one!(Asciicast.by_id_or_secret_token(id))
conn
|> put_layout("simple.html")
|> render("show.html", asciicast: asciicast)
end
end