fix: typo of FAQ (#959)

This commit is contained in:
jiangyongfeng 2019-12-12 15:41:13 +08:00 committed by WenMing
parent 36e814c906
commit f2bfc138df
2 changed files with 10 additions and 10 deletions

10
FAQ.md
View File

@ -79,13 +79,13 @@ An example, if you want to group by the request param `arg_id`
2. Group Barg_id > 1000 2. Group Barg_id > 1000
here is the way here is the way
```json ```shell
curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d ' curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d '
{ {
"uri": "/index.html", "uri": "/index.html",
"vars": [ "vars": [
{"arg_id", "<=", "1000"} ["arg_id", "<=", "1000"]
] ],
"plugins": { "plugins": {
"redirect": { "redirect": {
"uri": "/test?group_id=1" "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", "uri": "/index.html",
"vars": [ "vars": [
{"arg_id", ">", "1000"} ["arg_id", ">", "1000"]
] ],
"plugins": { "plugins": {
"redirect": { "redirect": {
"uri": "/test?group_id=2" "uri": "/test?group_id=2"

View File

@ -81,13 +81,13 @@ luarocks 服务。 运行 `luarocks config rocks_servers` 命令(这个命令
2. B组arg_id > 1000 2. B组arg_id > 1000
可以这么做: 可以这么做:
```json ```shell
curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d ' curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d '
{ {
"uri": "/index.html", "uri": "/index.html",
"vars": [ "vars": [
{"arg_id", "<=", "1000"} ["arg_id", "<=", "1000"]
] ],
"plugins": { "plugins": {
"redirect": { "redirect": {
"uri": "/test?group_id=1" "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", "uri": "/index.html",
"vars": [ "vars": [
{"arg_id", ">", "1000"} ["arg_id", ">", "1000"]
] ],
"plugins": { "plugins": {
"redirect": { "redirect": {
"uri": "/test?group_id=2" "uri": "/test?group_id=2"