Route

A simple example of route

## Route
apiVersion: gomaproj.github.io/v1beta1
kind: Route
metadata:
  name: route-sample
spec:
  # Name of the associated gateway
  gateway: gateway-sample

  # Route Configuration
  path: / # URL path for the route
  hosts: [] # Optional: Hostnames/domains for routing
  rewrite: / # Rewrite the path (e.g., /store -> /)
  methods:
    - GET
    - POST
    - PUT
  priority: 1 # Optional, route priority order
  # Backend Configuration
  # destination: https://example.com # For Single backend destination URL
  backends: # backends for load balancing
    - endpoint: https://backend1.example.com
      weight: 2
    - endpoint: https://backend2.example.com
      weight: 1
  insecureSkipVerify: false # Skip TLS verification (not recommended)

  # Health Check Settings
  healthCheck:
    path: / # Health check endpoint
    interval: 10s # Check interval
    timeout: 10s # Timeout for health check
    healthyStatuses:
      - 200 # HTTP status codes indicating healthy responses
      - 404

  # Cross-Origin Resource Sharing (CORS) Configuration
  cors:
    origins: [] # Allowed origins
    headers: {} # custom headers
  # Security and Middleware
  disableHostForwarding: true # Disable forwarding of Host headers
  blockCommonExploits: false  # Enable or disable blocking of common exploits
  # List of middleware names
  middlewares:
    - basic-middleware-sample