cookie MW added
This commit is contained in:
parent
4cf112ad5e
commit
476e5edf38
4 changed files with 17 additions and 2 deletions
|
|
@ -8,5 +8,5 @@ type Module interface {
|
|||
}
|
||||
|
||||
type ModuleRoutes interface {
|
||||
RegisterRoutes(r *gin.RouterGroup, authMW gin.HandlerFunc)
|
||||
RegisterRoutes(r *gin.RouterGroup, authMW gin.HandlerFunc, refreshMW gin.HandlerFunc)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@ import (
|
|||
type Router interface {
|
||||
Set() *gin.Engine
|
||||
AuthMW() gin.HandlerFunc
|
||||
RefreshMW() gin.HandlerFunc
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue