nextjs-rewrite #5
+8
-9
@@ -10,24 +10,23 @@ module EuchreCamp
|
|||||||
post "/auth/login", to: "auth.login.create"
|
post "/auth/login", to: "auth.login.create"
|
||||||
get "/logout", to: "auth.logout"
|
get "/logout", to: "auth.logout"
|
||||||
|
|
||||||
get "/players/:id", to: "players.show"
|
# Admin routes
|
||||||
get "/players/:id/profile", to: "players.profile"
|
get "/admin", to: "admin.index"
|
||||||
get "/players/:id/schedule", to: "players.schedule"
|
|
||||||
get "/rankings", to: "players.rankings"
|
|
||||||
|
|
||||||
|
# Player admin routes
|
||||||
|
get "/admin/players", to: "admin.players.index"
|
||||||
get "/admin/players/new", to: "admin.players.new"
|
get "/admin/players/new", to: "admin.players.new"
|
||||||
post "/admin/players", to: "admin.players.create"
|
post "/admin/players", to: "admin.players.create"
|
||||||
get "/admin/players", to: "admin.players.index"
|
|
||||||
get "/admin/players/:id/edit", to: "admin.players.edit"
|
get "/admin/players/:id/edit", to: "admin.players.edit"
|
||||||
patch "/admin/players/:id", to: "admin.players.update"
|
patch "/admin/players/:id", to: "admin.players.update"
|
||||||
delete "/admin/players/:id", to: "admin.players.destroy"
|
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"
|
get "/admin/matches/new", to: "admin.matches.new"
|
||||||
post "/admin/matches", to: "admin.matches.create"
|
post "/admin/matches", to: "admin.matches.create"
|
||||||
get "/admin/matches", to: "admin.matches.index"
|
get "/admin/matches/:id/edit", to: "admin.matches.edit"
|
||||||
|
patch "/admin/matches/:id", to: "admin.matches.update"
|
||||||
# CSV Upload routes
|
|
||||||
get "/admin/matches/upload", to: "admin.matches.upload"
|
get "/admin/matches/upload", to: "admin.matches.upload"
|
||||||
post "/admin/matches/process_upload", to: "admin.matches.process_upload"
|
post "/admin/matches/process_upload", to: "admin.matches.process_upload"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user