on 2018 Oct 14 11:35 AM
I understand that everybody knows it and it's probably my personal disorder. Nevertheless: could anyone share a clue on what "$1" exactly mean in xs-app.json route definition? Something like this:
{
"source": "^/some_url/(.*)$",
"target": "$1",
"destination": "some_destination"
}
The syntax route source/target is all regular expression based. Therefore I'd suggest just searching/reading up on the general concept of regular expression (particularly in the context of JavaScript as that is what the app router is written in). For example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Thomas,
Clear. Would be much helpful to add at least similar reference to support code examples in the documentation.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.