extracted common logic into a middleware
extracted common logic into a middleware

ramavats/torrentleecher1,Hax00/newflix,Hax00/newflix,umeshjakhar/huhap,neutrino658/peerflix-server3,lavcharu/peer,lavcharu/peer,asapach/peerflix-server,xjodoin/peerflix-server,asapach/peerflix-server,vvw/peerflix-server,RubenCordeiro/peerflix-server,umeshjakhar/huhap,Smallkan/onjoker,Smallkan/onjoker,RubenCordeiro/peerflix-server,joshterrill/peerflix-server,ramavats/torrentleecher1,neutrino658/peerflix-server3,garili/gariflix,joshterrill/peerflix-server,xjodoin/peerflix-server,vvw/peerflix-server,garili/gariflix