Refactor get_artikel*() functions/sql

This commit is contained in:
Thelonius Kort
2023-02-28 21:42:05 +01:00
parent fc0818678c
commit b87b54ec71
3 changed files with 27 additions and 12 deletions

View File

@ -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