feat: redirect to / to /guess when logged in
This commit is contained in:
parent
0affc58b13
commit
196678b61f
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue