18 lines
333 B
Go
18 lines
333 B
Go
package web
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"goweb-gin-demo/api"
|
|
)
|
|
|
|
type JwtRouter struct {
|
|
}
|
|
|
|
func (s *JwtRouter) InitJwtRouter(Router *gin.RouterGroup) {
|
|
jwtRouter := Router.Group("jwt")
|
|
var jwtApi = api.ApiGroupApp.ApiGroup.JwtApi
|
|
{
|
|
jwtRouter.POST("jsonInBlacklist", jwtApi.JsonInBlacklist) // jwt加入黑名单
|
|
}
|
|
}
|