From b2000331ce627418714d0ae0c880b1c29c6ad1dd Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Tue, 31 Jan 2023 23:06:26 -0300 Subject: [PATCH] fix player endpoints --- backend/routes/player.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/routes/player.go b/backend/routes/player.go index 3df8a7a..92a4314 100644 --- a/backend/routes/player.go +++ b/backend/routes/player.go @@ -8,9 +8,9 @@ import ( ) func PlayerRoutes(router *httprouter.Router) { - router.GET("/os", controllers.ListPlayer) - router.GET("/os/:id", controllers.GetPlayer) - router.POST("/os", middlewares.Authenticate(controllers.CreatePlayer)) - router.PATCH("/os/:id", middlewares.Authenticate(controllers.UpdatePlayer)) - router.DELETE("/os/:id", middlewares.Authenticate(controllers.DeletePlayer)) + router.GET("/player", controllers.ListPlayer) + router.GET("/player/:id", controllers.GetPlayer) + router.POST("/player", middlewares.Authenticate(controllers.CreatePlayer)) + router.PATCH("/player/:id", middlewares.Authenticate(controllers.UpdatePlayer)) + router.DELETE("/player/:id", middlewares.Authenticate(controllers.DeletePlayer)) }