Improve list view and add cookie
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user