can you provide an example to implement this feature?
If it is an abstraction of vars, then I understand it should look like this:
```
route:
{
uri: "/ test1",
vars_id: var_1,
...
},
{
uri: "/ test2",
vars_id: var_1,
...
},
vars:
{
id: var_1
values: [
["cookie_user", "==", "1"]
]
}
```
BTW, do we allow to enable `vars` and` vars_id` at the same time?
On Thu, Apr 23, 2020 at 2:44 PM 15717900 <[email protected]> wrote:
> hi,
> There are multiple routes, using the same vars, such
> as [["cookie_user", "==", "1"]], which take effect on both "/user" and
> "/pages" routes. If you abstract out vars and manage them separately, you
> don't need to modify their vars one by one, just one place.
--
*MembPhis*
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix