rewrite resource middleware by es6
rewrite resource middleware by es6

maxzhang/thinkjs,snadn/thinkjs,75team/thinkjs,75team/thinkjs,akira-cn/thinkjs,thinkjs/thinkjs,maxzhang/thinkjs,Qihoo360/thinkjs,75team/thinkjs,akira-cn/thinkjs,akira-cn/thinkjs,maxzhang/thinkjs