Moved http routing logic into web.go