vincentwc opened a new issue #4328:
URL: https://github.com/apache/apisix/issues/4328


   ### 我现在想在创建路由的时候给路由的key添加一个字符串该怎么实现
   看了一下etcd里面路由的存储,key都是  
/apisix/routes/85这样的,现在想对这个做一些扩展,/apisix/routes/{String}/85
   该怎么实现?
   目前的思路是在请求头里面添加一个k/v,然后再apisix里面怎么解析出来并在routes.lua里面使用?
   目前的想法是将k/v放到ngx.ctx里面,但是之前没做过,所以不知道该怎么实现,可以该我个实现说明吗
   
   ### Environment
   
   Request help without environment information will be ignored or closed.
   
   * apisix version (cmd: `apisix version`):
   * OS (cmd: `uname -a`):
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   * luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to