Generate schema and live_view scaffold for records

1. Records are not yet tied to artists
2. The generated edit route, along with related functionality, may be
   deleted as I don't think it's gonna be needed. Leaving it included in
   the commit for reference.
This commit is contained in:
Claudio Ortolina
2024-09-12 14:42:15 +01:00
parent 34111a44ba
commit e08fbe3740
12 changed files with 603 additions and 0 deletions
+7
View File
@@ -18,6 +18,13 @@ defmodule MusicLibraryWeb.Router do
pipe_through :browser
get "/", PageController, :home
live "/records", RecordLive.Index, :index
live "/records/new", RecordLive.Index, :new
live "/records/:id/edit", RecordLive.Index, :edit
live "/records/:id", RecordLive.Show, :show
live "/records/:id/show/edit", RecordLive.Show, :edit
end
# Other scopes may use custom stacks.