mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
11 lines
284 B
Elixir
11 lines
284 B
Elixir
defmodule PhilomenaWeb.PageController do
|
|
use PhilomenaWeb, :controller
|
|
|
|
alias Philomena.StaticPages.StaticPage
|
|
|
|
plug :load_resource, model: StaticPage, id_field: "slug"
|
|
|
|
def show(conn, _params) do
|
|
render(conn, "show.html", static_page: conn.assigns.static_page)
|
|
end
|
|
end
|