Update default route

This commit is contained in:
Thelonius Kort
2023-01-31 18:03:58 +01:00
parent 98426773b7
commit 6cafe09331

View File

@ -23,9 +23,12 @@ defmodule OutlookWeb.Router do
end
scope "/", OutlookWeb do
pipe_through :browser
pipe_through [:browser, :public_root_layout]
get "/", PageController, :home
get "/", ArtikelController, :index
resources "/autoren", AutorController, only: [:index, :show]
resources "/artikel", ArtikelController, only: [:index, :show]
end
# Other scopes may use custom stacks.
@ -106,7 +109,7 @@ defmodule OutlookWeb.Router do
end
scope "/", OutlookWeb do
pipe_through [:browser, :public_root_layout]
pipe_through :browser
delete "/users/log_out", UserSessionController, :delete
@ -115,8 +118,5 @@ defmodule OutlookWeb.Router do
live "/users/confirm/:token", UserConfirmationLive, :edit
live "/users/confirm", UserConfirmationInstructionsLive, :new
end
resources "/autoren", AutorController, only: [:index, :show]
resources "/artikel", ArtikelController, only: [:index, :show]
end
end