Sorry for late reply.
Can I suggest upgrading to the latest version, we’re on 2.3
at the moment and there’s been loads of routing fixes.
Your rewrites are in the wrong order, the {a}
will always match, try reversing them:
"extended_paths": {
"url_rewrites": [
{
"path": "/all",
"method": "GET",
"match_pattern": "all",
"rewrite_to": "measurement"
},
{
"path": "{a}",
"method": "GET",
"match_pattern": "(.*)",
"rewrite_to": "measurement/"
}
]
}
...
I assumed you were using the dashboard, which sorts routes by length for you before they are saved, if you are using file based mode then you need to add it manually.