Allowed routes to be single functions instead of only arrays.