fix player endpoints
This commit is contained in:
parent
e06427a041
commit
5fa4d4e78a
@ -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