|
|
@ -2,5 +2,6 @@ Rails.application.routes.draw do
|
|
|
|
root "movies#index"
|
|
|
|
root "movies#index"
|
|
|
|
get "movies" => "movies#index"
|
|
|
|
get "movies" => "movies#index"
|
|
|
|
get "movies/:id" => "movies#show", as: "movie"
|
|
|
|
get "movies/:id" => "movies#show", as: "movie"
|
|
|
|
|
|
|
|
patch "movies/:id" => "movies#update"
|
|
|
|
get "movies/:id/edit" => "movies#edit", as: "edit_movie"
|
|
|
|
get "movies/:id/edit" => "movies#edit", as: "edit_movie"
|
|
|
|
end
|
|
|
|
end
|
|
|
|