-
Notifications
You must be signed in to change notification settings - Fork 1
Router
Alex edited this page Jul 15, 2022
·
1 revision
method(url, (req, res) => cb(req, res)
| when url
is called with HTTP method method
, cb()
or await cb()
is returned
All HTTP Methods available
static(href, path)
| serves path
relative to local fs at href
on server
use(url, (req, res) => cb(req, res)
| middleware handler for given url