add routing middleware example