1a9b3496e1
🟢 destroy.rb for new files 🟢 edit.rb for new files 🟢 index.rb for new files 🟢 new.rb for new files 🟢 update.rb for new files 🟢 destroy.html.erb for new files 🟢 edit.html.erb for new files 🟢 index.html.erb for new files 🟢 new.html.erb for new files 🟢 destroy.rb for new files 🟢 edit.rb for new files 🟢 index.rb for new files 🟢 new.rb for new files The provided Git diff contains the addition of several new files representing different actions for the admin/players section of the application. These new files include create.rb, destroy.rb, edit.rb, index.rb, new.rb, update.rb, as well as corresponding HTML erb templates and view files. Additionally, the routes.rb file has been modified to include routes for the new admin player actions. Finally, there are new spec files for testing each of the new actions.
16 lines
566 B
Ruby
16 lines
566 B
Ruby
# frozen_string_literal: true
|
|
|
|
module EuchreCamp
|
|
class Routes < Hanami::Routes
|
|
# Add your routes here. See https://guides.hanamirb.org/routing/overview/ for details.
|
|
get "/players/:id", to: "players.show"
|
|
|
|
get "/admin/players/new", to: "admin.players.new"
|
|
post "/admin/players", to: "admin.players.create"
|
|
get "/admin/players", to: "admin.players.index"
|
|
get "/admin/players/:id/edit", to: "admin.players.edit"
|
|
patch "/admin/players/:id", to: "admin.players.update"
|
|
delete "/admin/players/:id", to: "admin.players.destroy"
|
|
end
|
|
end
|