feat(pastes): add page to view pastes
Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
6 files changed
+23
-2
No files matched your search
@@ -1,7 +1,15 @@
|
||||
defmodule KetbinWeb.PageController do
|
||||
use KetbinWeb, :controller
|
||||
|
||||
alias Ketbin.Pastes
|
||||
alias Ketbin.Pastes.Paste
|
||||
|
||||
def index(conn, _params) do
|
||||
render(conn, "index.html")
|
||||
end
|
||||
|
||||
def show(conn, %{"id" => id}) do
|
||||
paste = Pastes.get_paste!(id)
|
||||
render(conn, "show.html", paste: paste)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user