.get|put|post|patch|delete|del
=> Router
.routes
=> function
.use([path], middleware)
=> Router
.prefix(prefix)
=> Router
.allowedMethods([options])
=> function
.redirect(source, destination, [code])
=> Router
.route(name)
=> Layer | false
.url(name, params, [options])
=> String | Error
.param(param, middleware)
=> Router
.url(path, params)
=> String
router.allowedMethods()作用: 这是官方文档的推荐用法,我们可以
高级路由功能
前缀
多中间件
HTTP options 方法的作用是什么?