---
title: createOptionsRoute
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/fetch-router/src/lib/route-helpers/method.ts#L51
---

# createOptionsRoute

## Summary

Shorthand for a OPTIONS route.

## Aliases

options

## Signature

```ts
function createOptionsRoute<source extends string>(
  pattern: source | RoutePattern<source>,
): Route<"OPTIONS", source>;

```

## Parameters

### `pattern`

The route pattern string or pre-parsed AST

## Returns

A Route configured for OPTIONS requests