Hi,

I see there have too many characters to read, would you please send it
again?

15717900 <[email protected]>于2021年3月18日 周四下午1:17写道:

> 您好:
> &nbsp; &nbsp;sorry I leaved out this email
> &nbsp; &nbsp;The description in your email is accurate. That's what I mean
>
>
> &nbsp; &nbsp;do we allow to enable `vars` and` vars_id` at the same time?
> &nbsp; &nbsp;&nbsp;on this question , I think it is necessary allow to
> enable `vars` and` vars_id` at the same time
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:
>                                                   "dev"
>                                                                 <
> [email protected]&gt;;
> 发送时间:&nbsp;2020年4月28日(星期二) 中午11:06
> 收件人:&nbsp;"[email protected]"<[email protected]&gt;;
>
> 主题:&nbsp;Re: On the abstraction of vars
>
>
>
> 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:
> {
> &nbsp;&nbsp; uri: "/ test1",
> &nbsp;&nbsp; vars_id: var_1,
> &nbsp;&nbsp; ...
> },
> {
> &nbsp;&nbsp; uri: "/ test2",
> &nbsp;&nbsp; vars_id: var_1,
> &nbsp;&nbsp; ...
> },
>
> vars:
> {
> &nbsp;&nbsp; id: var_1
> &nbsp;&nbsp; values: [
> &nbsp;&nbsp;&nbsp;&nbsp; ["cookie_user", "==", "1"]
> &nbsp;&nbsp; ]
> }
> ```
>
> 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]&gt; wrote:
>
> &gt; hi,
> &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;There are multiple routes, using the
> same vars, such
> &gt; as [["cookie_user", "==", "1"]], which take effect on both "/user" and
> &gt; "/pages" routes. If you abstract out vars and manage them separately,
> you
> &gt; 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

-- 
来自 琚致远

Reply via email to