feat: add feature based structure
This commit is contained in:
8
internal/author/router.go
Normal file
8
internal/author/router.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package user
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func Register(r gin.IRouter, ctl *Controller) {
|
||||
g := r.Group("/authors")
|
||||
g.GET("", ctl.ListAuthors)
|
||||
}
|
||||
Reference in New Issue
Block a user