fixed

A function used to create static Maps

Arguments

Name

Type

Description

uri

String

A piece of the path to have router listen to

Usage

You can also use a string value within the route function in order to naturally trigger a fixed call

const { router } = require('octoris')

router.route([router.fixed('/')])

// You can also use a normal string value

router.route(['/'])

Last updated