.route() should accept functions