docs: update middleware example

This commit is contained in:
Jonas Kaninda
2024-11-20 07:57:15 +01:00
parent ece8f57596
commit 1c1353e3a5
3 changed files with 19 additions and 20 deletions

View File

@@ -90,8 +90,8 @@ Example of rateLimit middleware
```yaml
##### Define routes
routes:
- name: Basic auth
path: /protected
- path: /protected
name: oauth-route
rewrite: /
destination: 'https://example.com'
methods: [POST, PUT, GET]