diff --git a/lib/freedive_web/router.ex b/lib/freedive_web/router.ex index c2b6044..4744460 100644 --- a/lib/freedive_web/router.ex +++ b/lib/freedive_web/router.ex @@ -17,11 +17,11 @@ defmodule FreediveWeb.Router do plug :accepts, ["json"] end - # scope "/", FreediveWeb do - # pipe_through :browser + scope "/", FreediveWeb do + pipe_through :browser - # get "/", PageController, :home - # end + get "/", PageController, :home + end # Other scopes may use custom stacks. # scope "/api", FreediveWeb do @@ -64,7 +64,7 @@ defmodule FreediveWeb.Router do scope "/", FreediveWeb do pipe_through [:browser, :require_authenticated_user] - get "/", PageController, :home + # get "/", PageController, :home live_session :require_authenticated_user, on_mount: [{FreediveWeb.UserAuth, :ensure_authenticated}] do diff --git a/test/freedive_web/controllers/page_controller_test.exs b/test/freedive_web/controllers/page_controller_test.exs index 9905682..1c0b7dd 100644 --- a/test/freedive_web/controllers/page_controller_test.exs +++ b/test/freedive_web/controllers/page_controller_test.exs @@ -3,6 +3,6 @@ defmodule FreediveWeb.PageControllerTest do test "GET /", %{conn: conn} do conn = get(conn, ~p"/") - assert html_response(conn, 200) =~ "Peace of mind from prototype to production" + assert html_response(conn, 200) =~ "Under Construction" end end