Open JianleiZhang opened 3 years ago
I add this code in transport_http.go, but I think this file should not be edited manually.
// Tune specific change.
// also add the request url
ctx = context.WithValue(ctx, "request-url", r.URL.Path)
ctx = context.WithValue(ctx, "transport", "HTTPJSON")
ctx = context.WithValue(ctx, "method", r.Method)
I want to use the middleware casbin. Can I use the request method as the casbin action?