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

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

## Parameters

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

## Returns

[[`HttpOperation`](Interface.HttpOperation.md)[], *readonly* `Diagnostic`[]]

## Deprecated

use `getAllHttpServices` instead
