fix player endpoints

This commit is contained in:
Chris Cromer 2023-01-31 23:06:26 -03:00
parent e06427a041
commit 5fa4d4e78a
Signed by: cromer
GPG Key ID: FA91071797BEEEC2

View File

@ -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))
}