and on the off-chance that `stuff` must be a space-separated string for w/e reason:
IFS=' ' read -ra routes <<<"${stuff}"
for route in "${routes[@]}"; do
curl localhost:8080/"$route"
done