making the snippet private to the logged in user

This commit is contained in:
Thelonius Kort
2020-07-30 17:29:01 +02:00
parent 77a89e2682
commit f47f6150cb
3 changed files with 19 additions and 21 deletions

View File

@ -17,13 +17,6 @@ defmodule ClipWeb.Router do
plug :accepts, ["json"]
end
scope "/", ClipWeb do
pipe_through :browser
# live "/", PageLive, :index
live "/", BoardLive, :index
end
# Other scopes may use custom stacks.
# scope "/api", ClipWeb do
# pipe_through :api
@ -63,6 +56,8 @@ defmodule ClipWeb.Router do
scope "/", ClipWeb do
pipe_through [:browser, :require_authenticated_user]
live "/", BoardLive, :index
get "/users/settings", UserSettingsController, :edit
put "/users/settings/update_password", UserSettingsController, :update_password
put "/users/settings/update_email", UserSettingsController, :update_email