Cloudflare · Schema

RouteInput

AI GatewayAPI GatewayArtificial IntelligenceCDNCloudContainersDDoS ProtectionDNSEdgeEdge ComputingObject StoragePlatformReal-Time CommunicationSecurityServerlessWeb Performance

Properties

Name Type Description
pattern string The URL pattern for the route, e.g. example.com/*.
script string The name of the Worker script to invoke.
View JSON Schema on GitHub

JSON Schema

cloudflare-workers-route-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RouteInput",
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string",
      "description": "The URL pattern for the route, e.g. example.com/*."
    },
    "script": {
      "type": "string",
      "description": "The name of the Worker script to invoke."
    }
  }
}