fix player endpoints
This commit is contained in:
parent
69cc898fd7
commit
b2000331ce
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user