Update default route
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user