---
description: >-
  Sets a piece of the route to be listened to as a parameter instead of a static
  value
---

# param

## Arguments

| Name | Type   | Description                                            |
| ---- | ------ | ------------------------------------------------------ |
| p    | String | The name for the param to be given when set in context |

## Usage

```javascript
const { router } = require('octoris')

router.route(['/', router.param('id')])

```
