> For the complete documentation index, see [llms.txt](https://greymatter.gitbook.io/grey-matter-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://greymatter.gitbook.io/grey-matter-documentation/usage/fabric/api/route/route_match.md).

# route\_match

## Summary

### Example object

```javascript
{
  "path": "/services/example/latest/",
  "match_type": "prefix"
}
```

### Fields

#### `path`

String value that will be compared to the `:path` header on the incoming request using the chosen [match\_type](/grey-matter-documentation/usage/fabric/api/route/route_match.md#matchtype).

#### `match_type`

Sets the type of string matching to perform on the [path](/grey-matter-documentation/usage/fabric/api/route/route_match.md#path). Must be one of:

* `"prefix"` : [path](/grey-matter-documentation/usage/fabric/api/route/route_match.md#path) must match the beginning of the `:path` header
* `"exact"` : [path](/grey-matter-documentation/usage/fabric/api/route/route_match.md#path) must match exactly match the `:path` header.  *(query strings are not included in this match)*
* `"regex"` : [path](/grey-matter-documentation/usage/fabric/api/route/route_match.md#path) is interpreted as a regex that must match the `:path` header. *(query strings are not included in this match)*
