---
jsApi: true
title: "[F] getAllRoutes"

---
```ts
getAllRoutes(program, options?): [HttpOperation[], readonly Diagnostic[]]
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `options`? | [`RouteResolutionOptions`](../interfaces/RouteResolutionOptions.md) |

## Returns

[[`HttpOperation`](../interfaces/HttpOperation.md)[], readonly `Diagnostic`[]]

## Deprecated

use `getAllHttpServices` instead
