Refactor get_artikel*() functions/sql
This commit is contained in:
@ -13,7 +13,8 @@ defmodule OutlookWeb.ArtikelController do
|
||||
{:ok, artikel} -> render(conn, :show, artikel: artikel, page_title: artikel.title)
|
||||
{:error, message} -> conn
|
||||
|> put_status(404)
|
||||
|> render(OutlookWeb.ErrorHTML, "404.html")
|
||||
|> put_view(OutlookWeb.ErrorHTML)
|
||||
|> render("404.html")
|
||||
|> halt()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user