Set up central HTTP route handling, reduce redundancy