Re: On the abstraction of vars

2021-03-17 Thread Zhiyuan Ju
"dev" > < > membp...@apache.org>; > 发送时间: 2020年4月28日(星期二) 中午11:06 > 收件人: "dev@apisix.apache.org" > 主题: Re: On the abstraction of vars > > > > can you provide an example to implement this feature? > >

?????? On the abstraction of vars

2021-03-17 Thread 15717900
??    sorry I leaved out this email    The description in your email is accurate. That's what I mean    do we allow to enable `vars` and` vars_id` at the same time?     on this question , I think it is necessary allow to enable `vars` and` vars_id` at the same time -- ?

Re: On the abstraction of vars

2020-04-27 Thread YuanSheng Wang
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",

On the abstraction of vars

2020-04-22 Thread 15717900
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.