anonymous user , as long as you have connectivity between APPGW and backends in the spokes, you will be to implement path-based routing / URL based routing.
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.