feat: self-connection blocking API support (token-device internal endpoint, jti)

This commit is contained in:
admin committed 2026-09-16 13:33:27 +08:00
1 parent 37b9991d0e
commit 9e34bdce9e
6 files changed
+73 -1

No files matched your search

+6
View File
@@ -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{}