use new middleware signature;update readme
Merge pull request #2 from coderhaoxin/master

use new middleware signature;update readme