feat: add getAuthorByID

This commit is contained in:
Justin Lin
2025-08-26 19:34:42 +10:00
parent d963362711
commit 0dc1d411f4
2 changed files with 23 additions and 5 deletions

View File

@@ -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)
}