Find the first rule in routingSpec whose pattern matches the current sandboxPath, returning it with the captured params (or undefined).
routingSpec
sandboxPath
undefined
Find the first rule in
routingSpecwhose pattern matches the currentsandboxPath, returning it with the captured params (orundefined).