fix player endpoints

This commit is contained in:
Chris Cromer 2023-01-31 23:06:26 -03:00 committed by Martin Araneda
parent 69cc898fd7
commit b2000331ce

View File

@ -8,9 +8,9 @@ import (
) )
func PlayerRoutes(router *httprouter.Router) { func PlayerRoutes(router *httprouter.Router) {
router.GET("/os", controllers.ListPlayer) router.GET("/player", controllers.ListPlayer)
router.GET("/os/:id", controllers.GetPlayer) router.GET("/player/:id", controllers.GetPlayer)
router.POST("/os", middlewares.Authenticate(controllers.CreatePlayer)) router.POST("/player", middlewares.Authenticate(controllers.CreatePlayer))
router.PATCH("/os/:id", middlewares.Authenticate(controllers.UpdatePlayer)) router.PATCH("/player/:id", middlewares.Authenticate(controllers.UpdatePlayer))
router.DELETE("/os/:id", middlewares.Authenticate(controllers.DeletePlayer)) router.DELETE("/player/:id", middlewares.Authenticate(controllers.DeletePlayer))
} }