feat: self-connection blocking API support (token-device internal endpoint, jti)
This commit is contained in:
1 parent
37b9991d0e
commit
9e34bdce9e
6 files changed
+73
-1
No files matched your search
@@ -73,6 +73,12 @@ func ApiInit(g *gin.Engine) {
|
||||
frg.POST("/audit/file", au.AuditFile)
|
||||
}
|
||||
|
||||
{
|
||||
in := &api.Internal{}
|
||||
// 仅供hbbs容器内调用:token -> device_id(自连拦截用)
|
||||
frg.GET("/internal/token-device", in.TokenDevice)
|
||||
}
|
||||
|
||||
frg.Use(middleware.RustAuth())
|
||||
{
|
||||
u := &api.User{}
|
||||
|
||||
Reference in new issue
Block a user