auth MW refactor
This commit is contained in:
parent
a7530a6324
commit
0903bc55eb
7 changed files with 15 additions and 148 deletions
|
|
@ -2,13 +2,11 @@ package interfaces
|
|||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"merch-parser-api/internal/shared"
|
||||
)
|
||||
|
||||
type Module interface {
|
||||
}
|
||||
|
||||
type ModuleRoutes interface {
|
||||
RegisterRoutes(r *gin.RouterGroup)
|
||||
ExcludeRoutes() []shared.ExcludeRoute
|
||||
RegisterRoutes(r *gin.RouterGroup, authMW gin.HandlerFunc)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,10 +2,9 @@ package interfaces
|
|||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"merch-parser-api/internal/shared"
|
||||
)
|
||||
|
||||
type Router interface {
|
||||
Set() *gin.Engine
|
||||
ExcludeRoutes(routes []shared.ExcludeRoute)
|
||||
AuthMW() gin.HandlerFunc
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue