Update routes to :ensure_authenticated

Implies setting :current_user for liveviews.
This commit is contained in:
Thelonius Kort
2023-01-09 21:11:13 +01:00
parent 54250a5a95
commit 3cd9d983fe

View File

@ -68,7 +68,6 @@ defmodule OutlookWeb.Router do
on_mount: [{OutlookWeb.UserAuth, :ensure_authenticated}] do
live "/users/settings", UserSettingsLive, :edit
live "/users/settings/confirm_email/:token", UserSettingsLive, :confirm_email
end
live "/authors", AuthorLive.Index, :index
live "/authors/new", AuthorLive.Index, :new
@ -99,6 +98,7 @@ defmodule OutlookWeb.Router do
live "/deepl_accounts/:id", DeeplAccountLive.Show, :show
live "/deepl_accounts/:id/show/edit", DeeplAccountLive.Show, :edit
end
end
scope "/", OutlookWeb do
pipe_through [:browser]