docs: update configuration example

This commit is contained in:
2024-11-07 00:00:58 +01:00
parent a23111f1ad
commit 1e02e37ff3
3 changed files with 18 additions and 6 deletions

View File

@@ -9,8 +9,21 @@ nav_order: 3
The Route allows you to match on HTTP traffic and direct it to the backend.
### Example of a route
### Create a route
```yaml
- name: Example
path: /store/cart
rewrite: /cart
destination: http://cart-service:8080
healthCheck: ''
cors: {}
middlewares:
- api-forbidden-paths
- jwt-auth
```
### Full example of routes and middlewares
```yaml
# Goma Gateway configurations