mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 12:07:35 +08:00
docs(global_rule): update global rule description (#5739)
This commit is contained in:
parent
139c397289
commit
b612f4ec1e
@ -21,7 +21,7 @@ title: Global rule
|
||||
#
|
||||
-->
|
||||
|
||||
[Plugin](plugin.md) just can be bound to [Service](service.md) or [Route](route.md), if we want a [Plugin](plugin.md) work on all requests, how to do it?
|
||||
The [Plugin](plugin.md) configuration can be bound directly to a [Route](route.md), or to a [Service](service.md) or [Consumer](consumer.md). What if we want a [Plugin](plugin.md) to work on all requests, how to do it?
|
||||
We can register a global [Plugin](plugin.md) with `GlobalRule`:
|
||||
|
||||
```shell
|
||||
|
@ -21,7 +21,7 @@ title: Global rule
|
||||
#
|
||||
-->
|
||||
|
||||
[Plugin](plugin.md) 只能绑定在 [Service](service.md) 或者 [Route](route.md) 上,如果我们需要一个能作用于所有请求的 [Plugin](plugin.md) 该怎么办呢?
|
||||
[Plugin](plugin.md) 配置可直接绑定在 [Route](route.md) 上,也可以被绑定在 [Service](service.md) 或 [Consumer](consumer.md) 上,如果我们需要一个能作用于所有请求的 [Plugin](plugin.md) 该怎么办呢?
|
||||
这时候我们可以使用 `GlobalRule` 来注册一个全局的 [Plugin](plugin.md):
|
||||
|
||||
```shell
|
||||
|
Loading…
Reference in New Issue
Block a user