Add a layout for the public pages

This commit is contained in:
Thelonius Kort
2023-01-19 22:16:18 +01:00
parent c0fe63588c
commit 8d1c08bfb4
2 changed files with 22 additions and 1 deletions

View File

@ -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