feat: redirect to / to /guess when logged in
parent
0affc58b13
commit
196678b61f
|
@ -19,8 +19,6 @@ defmodule PentoWeb.Router do
|
||||||
|
|
||||||
scope "/", PentoWeb do
|
scope "/", PentoWeb do
|
||||||
pipe_through :browser
|
pipe_through :browser
|
||||||
|
|
||||||
get "/", PageController, :home
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Other scopes may use custom stacks.
|
# Other scopes may use custom stacks.
|
||||||
|
@ -56,6 +54,7 @@ defmodule PentoWeb.Router do
|
||||||
live "/users/log_in", UserLoginLive, :new
|
live "/users/log_in", UserLoginLive, :new
|
||||||
live "/users/reset_password", UserForgotPasswordLive, :new
|
live "/users/reset_password", UserForgotPasswordLive, :new
|
||||||
live "/users/reset_password/:token", UserResetPasswordLive, :edit
|
live "/users/reset_password/:token", UserResetPasswordLive, :edit
|
||||||
|
get "/", PageController, :home
|
||||||
end
|
end
|
||||||
|
|
||||||
post "/users/log_in", UserSessionController, :create
|
post "/users/log_in", UserSessionController, :create
|
||||||
|
|
|
@ -225,5 +225,5 @@ defmodule PentoWeb.UserAuth do
|
||||||
|
|
||||||
defp maybe_store_return_to(conn), do: conn
|
defp maybe_store_return_to(conn), do: conn
|
||||||
|
|
||||||
defp signed_in_path(_conn), do: ~p"/"
|
defp signed_in_path(_conn), do: ~p"/guess"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue