Netlify · Schema

functionRoute

CDNCloudContinuous DeploymentEdge ComputingJAMstackServerlessServerless FunctionsStatic SitesWeb HostingWebsites

Properties

Name Type Description
pattern string
literal string
expression string
methods array
prefer_static boolean
View JSON Schema on GitHub

JSON Schema

netlify-functionroute-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/functionRoute",
  "title": "functionRoute",
  "type": "object",
  "properties": {
    "pattern": {
      "type": "string"
    },
    "literal": {
      "type": "string"
    },
    "expression": {
      "type": "string"
    },
    "methods": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "GET",
          "POST",
          "PUT",
          "PATCH",
          "DELETE",
          "OPTIONS"
        ]
      }
    },
    "prefer_static": {
      "type": "boolean"
    }
  }
}