Improve list view and add cookie

This commit is contained in:
2023-11-27 16:49:59 +00:00
committed by Daniel Patterson
parent e31db2f5e8
commit cb7c15c345
5 changed files with 129 additions and 59 deletions

View File

@@ -17,8 +17,12 @@ defmodule WishWeb.Router do
plug :accepts, ["json"]
end
pipeline :get_layout do
plug WishWeb.Plug.GetLayoutFromCookie
end
scope "/", WishWeb do
pipe_through :browser
pipe_through [:browser, :get_layout]
live "/", HomeLive.Index, :index
live "/details/:id", HomeLive.Details, :index