add publish-request middleware
Merge pull request #1 from kordano/master

refactor to publish-request middleware