feat: redirect to / to /guess when logged in

main
Moritz Böhme 2024-08-18 20:20:24 +02:00
parent 0affc58b13
commit 196678b61f
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 2 additions and 3 deletions

View File

@ -19,8 +19,6 @@ defmodule PentoWeb.Router do
scope "/", PentoWeb do
pipe_through :browser
get "/", PageController, :home
end
# Other scopes may use custom stacks.
@ -56,6 +54,7 @@ defmodule PentoWeb.Router do
live "/users/log_in", UserLoginLive, :new
live "/users/reset_password", UserForgotPasswordLive, :new
live "/users/reset_password/:token", UserResetPasswordLive, :edit
get "/", PageController, :home
end
post "/users/log_in", UserSessionController, :create

View File

@ -225,5 +225,5 @@ defmodule PentoWeb.UserAuth do
defp maybe_store_return_to(conn), do: conn
defp signed_in_path(_conn), do: ~p"/"
defp signed_in_path(_conn), do: ~p"/guess"
end