wraps routing logic into Trout