|
|
@ -44,13 +44,6 @@ defmodule DecentralisedBookIndexWeb.Router do
|
|
|
|
live "/books/:id", BookLive.Show, :show
|
|
|
|
live "/books/:id", BookLive.Show, :show
|
|
|
|
live "/books/:id/show/edit", BookLive.Show, :edit
|
|
|
|
live "/books/:id/show/edit", BookLive.Show, :edit
|
|
|
|
|
|
|
|
|
|
|
|
live "/authors", AuthorLive.Index, :index
|
|
|
|
|
|
|
|
live "/authors/new", AuthorLive.Index, :new
|
|
|
|
|
|
|
|
live "/authors/:id/edit", AuthorLive.Index, :edit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
live "/authors/:id", AuthorLive.Show, :show
|
|
|
|
|
|
|
|
live "/authors/:id/show/edit", AuthorLive.Show, :edit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
live "/publishers", PublisherLive.Index, :index
|
|
|
|
live "/publishers", PublisherLive.Index, :index
|
|
|
|
live "/publishers/new", PublisherLive.Index, :new
|
|
|
|
live "/publishers/new", PublisherLive.Index, :new
|
|
|
|
live "/publishers/:id/edit", PublisherLive.Index, :edit
|
|
|
|
live "/publishers/:id/edit", PublisherLive.Index, :edit
|
|
|
@ -76,6 +69,13 @@ defmodule DecentralisedBookIndexWeb.Router do
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# If an authenticated user must *not* be present:
|
|
|
|
# If an authenticated user must *not* be present:
|
|
|
|
# on_mount {DecentralisedBookIndexWeb.LiveUserAuth, :live_no_user}
|
|
|
|
# on_mount {DecentralisedBookIndexWeb.LiveUserAuth, :live_no_user}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
live "/authors", AuthorLive.Index, :index
|
|
|
|
|
|
|
|
live "/authors/new", AuthorLive.Edit, :new
|
|
|
|
|
|
|
|
live "/authors/:id/edit", AuthorLive.Edit, :edit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
live "/authors/:id", AuthorLive.Show, :show
|
|
|
|
|
|
|
|
live "/authors/:id/show/edit", AuthorLive.Show, :edit
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|