move array creation to route setup, clean up the loop a little
move array creation to route setup, clean up the loop a little

DJMcK/hapi,StudyForFun/hapi,credosam/hapi,Eric013/hapi,youprofit/hapi,rodfernandez/hapi,cesarmarinhorj/hapi,youprofit/hapi,vertiman/hapi,julianduque/hapi,HugoRLopes/hapi,bbondy/hapi,SimonLab/hapi,ClaudeHarry/hapi,camerow/hapi,rmoorman/hapi,wzrdtales/hapi,danielb2/hapi,papimomi/hapi,wookiehangover/hapi,shalomabitan/hapi,zhoujia123/hapi,camerow/hapi,julianduque/hapi,hulbert/hapi,udhayam/hapi,DJMcK/hapi,wzrdtales/hapi,analytically/hapi,cesarmarinhorj/hapi,evdevgit/hapi,StudyForFun/hapi,udhayam/hapi,Binarytales/hapi,danielb2/hapi,jefflembeck/hapi,toboid/hapi,credosam/hapi,papimomi/hapi,bbondy/hapi,ClaudeHarry/hapi,Marsup/hapi,rodfernandez/hapi,shalomabitan/hapi,zhoujia123/hapi,deepakshrma/hapi,evdevgit/hapi,vertiman/hapi,jefflembeck/hapi,Binarytales/hapi,hulbert/hapi,analytically/hapi,SimonLab/hapi,deepakshrma/hapi,aulvi/hapi,toboid/hapi,rmoorman/hapi,ryanmurakami/hapi,Eric013/hapi,ldesplat/hapi,wookiehangover/hapi,HugoRLopes/hapi,Marsup/hapi,bells17/hapi,jrmce/hapi,ryanmurakami/hapi,ldesplat/hapi,bells17/hapi,aulvi/hapi,jrmce/hapi