Update to change the home page to the book index page.
continuous-integration/drone/push Build is failing Details

dev
KKlochko 3 months ago
parent bc6747f81b
commit ce0060ce73

@ -35,6 +35,8 @@ defmodule DecentralisedBookIndexWeb.Router do
scope "/", DecentralisedBookIndexWeb do scope "/", DecentralisedBookIndexWeb do
pipe_through :browser pipe_through :browser
live "/", BookLive.Index, :index
live "/books", BookLive.Index, :index live "/books", BookLive.Index, :index
live "/books/new", BookLive.Index, :new live "/books/new", BookLive.Index, :new
live "/books/:id/edit", BookLive.Index, :edit live "/books/:id/edit", BookLive.Index, :edit
@ -73,7 +75,7 @@ defmodule DecentralisedBookIndexWeb.Router do
scope "/", DecentralisedBookIndexWeb do scope "/", DecentralisedBookIndexWeb do
pipe_through :browser pipe_through :browser
get "/", PageController, :home # get "/", PageController, :home
auth_routes AuthController, DecentralisedBookIndex.Accounts.User, path: "/auth" auth_routes AuthController, DecentralisedBookIndex.Accounts.User, path: "/auth"
sign_out_route AuthController sign_out_route AuthController

Loading…
Cancel
Save