问题描述
-routes:
- name: some-route
- paths:
- /some-path
plugins:
- name: some-plugin
methods: GET # Only run plugin for GET
configuration:
some-config:
- foo
解决方法
你应该把方法放在路由级别
-routes:
- name: some-route
methods:
- GET # Only run plugin for GET
paths:
- /some-path
plugins:
- name: some-plugin
configuration:
some-config:
- foo