I would like to allow only some of the request paths within one line rule like this
'[service,register,state]'.contains(request.path) && '[AT,DE,CH]'.contains(origin.region_code)
Unfortunately I am not sure how to tackle this since this since the last path with origin.region_code
works fine for multiple occurences but not the request.path
The old way with only one string works request.path.contains('service')
But I need to make a map or working list out of it like '[service,register,state]'.contains(request.path)
The google docu does not help much here
okay it seems that the anwser was rather easy and regex a`like
just use this
request.path.matches('service|register|state')