param

Sets a piece of the route to be listened to as a parameter instead of a static value

Arguments

Name

Type

Description

p

String

The name for the param to be given when set in context

Usage

const { router } = require('octoris')

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

Last updated