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"
|
2022-06-29 21:26:05 -04:00
|
|
|
|
|
|
|
"github.com/julienschmidt/httprouter"
|
|
|
|
)
|
|
|
|
|
|
|
|
func GameRoutes(router *httprouter.Router) {
|
2023-02-01 14:43:36 -03:00
|
|
|
router.GET("/game", controllers.ListGame)
|
|
|
|
router.GET("/game/:id", controllers.GetGame)
|
2023-01-28 00:04:17 -03:00
|
|
|
router.POST("/game", controllers.CreateGame)
|
2023-02-01 14:43:36 -03:00
|
|
|
router.PATCH("/game/:id", controllers.UpdateGame)
|
|
|
|
router.DELETE("/game/:id", controllers.DeleteGame)
|
2022-06-29 21:26:05 -04:00
|
|
|
}
|