Add a layout for the public pages
This commit is contained in:
@ -13,6 +13,10 @@ defmodule OutlookWeb.Router do
|
||||
plug :fetch_current_user
|
||||
end
|
||||
|
||||
pipeline :public_root_layout do
|
||||
plug :put_root_layout, "proot.html"
|
||||
end
|
||||
|
||||
pipeline :api do
|
||||
plug :accepts, ["json"]
|
||||
end
|
||||
@ -101,7 +105,7 @@ defmodule OutlookWeb.Router do
|
||||
end
|
||||
|
||||
scope "/", OutlookWeb do
|
||||
pipe_through [:browser]
|
||||
pipe_through [:browser, :public_root_layout]
|
||||
|
||||
delete "/users/log_out", UserSessionController, :delete
|
||||
|
||||
|
||||
Reference in New Issue
Block a user