mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 12:07:35 +08:00
fix: typo of FAQ (#959)
This commit is contained in:
parent
36e814c906
commit
f2bfc138df
10
FAQ.md
10
FAQ.md
@ -79,13 +79,13 @@ An example, if you want to group by the request param `arg_id`:
|
||||
2. Group B:arg_id > 1000
|
||||
|
||||
here is the way:
|
||||
```json
|
||||
```shell
|
||||
curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d '
|
||||
{
|
||||
"uri": "/index.html",
|
||||
"vars": [
|
||||
{"arg_id", "<=", "1000"}
|
||||
]
|
||||
["arg_id", "<=", "1000"]
|
||||
],
|
||||
"plugins": {
|
||||
"redirect": {
|
||||
"uri": "/test?group_id=1"
|
||||
@ -97,8 +97,8 @@ curl -i http://127.0.0.1:9080/apisix/admin/routes/2 -X PUT -d '
|
||||
{
|
||||
"uri": "/index.html",
|
||||
"vars": [
|
||||
{"arg_id", ">", "1000"}
|
||||
]
|
||||
["arg_id", ">", "1000"]
|
||||
],
|
||||
"plugins": {
|
||||
"redirect": {
|
||||
"uri": "/test?group_id=2"
|
||||
|
10
FAQ_CN.md
10
FAQ_CN.md
@ -81,13 +81,13 @@ luarocks 服务。 运行 `luarocks config rocks_servers` 命令(这个命令
|
||||
2. B组:arg_id > 1000
|
||||
|
||||
可以这么做:
|
||||
```json
|
||||
```shell
|
||||
curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d '
|
||||
{
|
||||
"uri": "/index.html",
|
||||
"vars": [
|
||||
{"arg_id", "<=", "1000"}
|
||||
]
|
||||
["arg_id", "<=", "1000"]
|
||||
],
|
||||
"plugins": {
|
||||
"redirect": {
|
||||
"uri": "/test?group_id=1"
|
||||
@ -99,8 +99,8 @@ curl -i http://127.0.0.1:9080/apisix/admin/routes/2 -X PUT -d '
|
||||
{
|
||||
"uri": "/index.html",
|
||||
"vars": [
|
||||
{"arg_id", ">", "1000"}
|
||||
]
|
||||
["arg_id", ">", "1000"]
|
||||
],
|
||||
"plugins": {
|
||||
"redirect": {
|
||||
"uri": "/test?group_id=2"
|
||||
|
Loading…
Reference in New Issue
Block a user