Add http routing to main()