improve http status responses and funcion names in game controller

This commit is contained in:
2023-01-28 00:04:17 -03:00
parent 495f9bd2d5
commit 46189c7376
2 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ import (
)
func GameRoutes(router *httprouter.Router) {
router.POST("/game", controllers.PostGame)
router.GET("/games", middlewares.Authenticate(controllers.ListGames))
router.GET("/game/:id", middlewares.Authenticate(controllers.GetGame))
router.POST("/game", controllers.CreateGame)
}