# basePath

**Kind:** Function

**Source:** [`src/helper/route/index.ts`](https://github.com/honojs/hono/blob/main/src/helper/route/index.ts#L107)

**Part of:** [Helper](subsystem-src-helper)

## Signature

```ts
function basePath(c: Context, index: number): string
```

## Parameters

| Name | Type |
|---|---|
| `c` | `Context` |
| `index` | `number` |

**Returns:** `string`

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

- `handler` — `src/middleware/method-not-allowed/index.ts`:133
