Update routes to :ensure_authenticated
Implies setting :current_user for liveviews.
This commit is contained in:
@ -68,7 +68,6 @@ defmodule OutlookWeb.Router do
|
|||||||
on_mount: [{OutlookWeb.UserAuth, :ensure_authenticated}] do
|
on_mount: [{OutlookWeb.UserAuth, :ensure_authenticated}] do
|
||||||
live "/users/settings", UserSettingsLive, :edit
|
live "/users/settings", UserSettingsLive, :edit
|
||||||
live "/users/settings/confirm_email/:token", UserSettingsLive, :confirm_email
|
live "/users/settings/confirm_email/:token", UserSettingsLive, :confirm_email
|
||||||
end
|
|
||||||
|
|
||||||
live "/authors", AuthorLive.Index, :index
|
live "/authors", AuthorLive.Index, :index
|
||||||
live "/authors/new", AuthorLive.Index, :new
|
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", DeeplAccountLive.Show, :show
|
||||||
live "/deepl_accounts/:id/show/edit", DeeplAccountLive.Show, :edit
|
live "/deepl_accounts/:id/show/edit", DeeplAccountLive.Show, :edit
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
scope "/", OutlookWeb do
|
scope "/", OutlookWeb do
|
||||||
pipe_through [:browser]
|
pipe_through [:browser]
|
||||||
|
|||||||
Reference in New Issue
Block a user