17 lines
365 B
Elixir
17 lines
365 B
Elixir
defmodule MvWeb.PageController do
|
|
@moduledoc """
|
|
Controller for rendering the homepage.
|
|
|
|
This controller handles the root route and renders the application's
|
|
homepage view.
|
|
"""
|
|
use MvWeb, :controller
|
|
|
|
use Gettext, backend: MvWeb.Gettext
|
|
|
|
def home(conn, _params) do
|
|
conn
|
|
|> assign(:page_title, gettext("Home"))
|
|
|> render(:home)
|
|
end
|
|
end
|