Colton Idle
07/09/2021, 3:24 AMwhen (request.path) {
"/api/one/two" ->
return "blah"
"/api/three/four?arg=myArg" ->
return "boop"
I want the second case to basically be api/three/four*
instead of hard coding the arg.
Or do I have to basically refactor this and just use endsWith or something?Dave K
07/09/2021, 6:40 AMwhen {
request.path == “/api/one/two“ ->
…
request.path.startsWith(“/api/three/four”) ->
…Val path = request.path
when {
path ==
Colton Idle
07/09/2021, 3:05 PMwith
lol. Thanks!