preorder/formats/router.go

13 lines
331 B
Go
Raw Normal View History

2024-06-20 02:49:55 +00:00
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
}