MW usage refactor
This commit is contained in:
parent
229eebcf66
commit
21b54c4167
9 changed files with 98 additions and 48 deletions
|
|
@ -1,7 +1,10 @@
|
|||
package app
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"merch-api/pkg/router"
|
||||
)
|
||||
|
||||
type Module interface {
|
||||
RegisterRoutes(r *gin.RouterGroup)
|
||||
RegisterRoutes(r *gin.RouterGroup, mw *router.Middlewares)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue