apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

excuse,how to do the fuzzy search of routing in the apisix-dashboard

Open StretchV opened this issue 5 years ago • 3 comments

请问dashboard中路由的模糊搜索是怎么做的呢,是后台程序自己做的循环正则匹配etcd中的值吗

StretchV avatar Apr 15 '21 07:04 StretchV

@nic-chen 大佬可以帮解惑一下吗

StretchV avatar Apr 19 '21 02:04 StretchV

hi @StretchV

The Manager API loops to match the values ​​in cache (from ETCD), but it is not a regular match. For the detail, please see: https://github.com/apache/apisix-dashboard/blob/master/api/internal/core/store/store.go#L187-L195 https://github.com/apache/apisix-dashboard/blob/master/api/internal/handler/route/route.go#L222-L239

nic-chen avatar Apr 19 '21 03:04 nic-chen

感谢

StretchV avatar Apr 19 '21 07:04 StretchV