alai-server/backend/routes/game.go

15 lines
432 B
Go
Raw Normal View History

2022-06-29 21:26:05 -04:00
package routes
import (
2022-07-22 23:00:31 -04:00
"git.cromer.cl/Proyecto-Titulo/alai-server/backend/controllers"
"git.cromer.cl/Proyecto-Titulo/alai-server/backend/middlewares"
2022-06-29 21:26:05 -04:00
"github.com/julienschmidt/httprouter"
)
func GameRoutes(router *httprouter.Router) {
2023-02-01 14:38:42 -03:00
router.GET("/game", middlewares.Authenticate(controllers.ListGame))
2022-06-29 21:26:05 -04:00
router.GET("/game/:id", middlewares.Authenticate(controllers.GetGame))
router.POST("/game", controllers.CreateGame)
2022-06-29 21:26:05 -04:00
}