preorder/formats/router.go
2024-06-19 22:49:55 -04:00

13 lines
331 B
Go

package formats
import "github.com/gin-gonic/gin"
func ApplyFormatRouter(router *gin.Engine) *gin.Engine {
router.GET("/formats", FindFormats)
router.POST("/formats", CreateFormat)
router.GET("/formats/:id", FindFormat)
router.PATCH("/formats/:id", UpdateFormat)
router.DELETE("/formats/:id", DeleteFormat)
return router
}