diff --git a/config/routes.rb b/config/routes.rb index 2e8e300..ee5564b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,25 +9,24 @@ module EuchreCamp get "/login", to: "auth.login.show" post "/auth/login", to: "auth.login.create" get "/logout", to: "auth.logout" - - get "/players/:id", to: "players.show" - get "/players/:id/profile", to: "players.profile" - get "/players/:id/schedule", to: "players.schedule" - get "/rankings", to: "players.rankings" + # Admin routes + get "/admin", to: "admin.index" + + # Player admin routes + get "/admin/players", to: "admin.players.index" 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" - # Match routes + # Match admin routes + get "/admin/matches", to: "admin.matches.index" get "/admin/matches/new", to: "admin.matches.new" post "/admin/matches", to: "admin.matches.create" - get "/admin/matches", to: "admin.matches.index" - - # CSV Upload routes + get "/admin/matches/:id/edit", to: "admin.matches.edit" + patch "/admin/matches/:id", to: "admin.matches.update" get "/admin/matches/upload", to: "admin.matches.upload" post "/admin/matches/process_upload", to: "admin.matches.process_upload"