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

---
```ts
setRoute(
  context,
  entity,
  details): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `entity` | `Type` |
| `details` | [`RoutePath`](Interface.RoutePath.md) |

## Returns

`void`
