comfycamp/lib/comfycamp_web/controllers/admin_page_controller.ex

16 lines
342 B
Elixir
Raw Normal View History

defmodule ComfycampWeb.AdminPageController do
use ComfycampWeb, :controller
def home(conn, _params) do
conn
|> put_layout(html: :admin)
|> render(:home, page_title: "Админка")
end
def services(conn, _params) do
conn
|> put_layout(html: :admin)
|> render(:home, page_title: "Админка")
end
end