feat: add getAuthorByID
This commit is contained in:
@@ -5,4 +5,5 @@ import "github.com/gin-gonic/gin"
|
||||
func Register(r gin.IRouter, ctl *Controller) {
|
||||
g := r.Group("/authors")
|
||||
g.GET("", ctl.ListAuthors)
|
||||
g.GET("/:id", ctl.GetAuthorByID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user