preorder/authors/router.go

13 lines
331 B
Go
Raw Normal View History

2024-06-20 02:49:55 +00:00
package authors
import "github.com/gin-gonic/gin"
func ApplyAuthorRouter(router *gin.Engine) *gin.Engine {
router.GET("/authors", FindAuthors)
router.POST("/authors", CreateAuthor)
router.GET("/authors/:id", FindAuthor)
router.PATCH("/authors/:id", UpdateAuthor)
router.DELETE("/authors/:id", DeleteAuthor)
return router
}