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

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

## Parameters

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

## Returns

`void`
