[feature] Adding middleware support for  method