support multiple arrays in api_controllers_matcher

Sometimes there are a few different end points for api without a common parent (/api, /private_api) that we want to support without including the parent directory.