remove trouble code
This commit is contained in:
4
main.go
4
main.go
@@ -103,8 +103,8 @@ func authMiddleware(groups []string) gin.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add the token to the request context for later use
|
// Add the token to the request context for later use
|
||||||
ctx := context.WithValue(c.Request.Context(), "token", token)
|
//ctx := context.WithValue(c.Request.Context(), "token", token)
|
||||||
c.Request = c.Request.WithContext(ctx)
|
//c.Request = c.Request.WithContext(ctx)
|
||||||
|
|
||||||
// Call the next handler
|
// Call the next handler
|
||||||
c.Next()
|
c.Next()
|
||||||
|
|||||||
Reference in New Issue
Block a user