Sets a piece of the route to be listened to as a parameter instead of a static value
Name
Type
Description
p
String
The name for the param to be given when set in context
const { router } = require('octoris') router.route(['/', router.param('id')])
Last updated 4 years ago