We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5ef8c8 commit 209bbdfCopy full SHA for 209bbdf
lib/router/sequential.js
@@ -5,7 +5,7 @@ const next = require('./../next')
5
6
module.exports = (config = {}) => {
7
if (!config.defaultRoute) {
8
- config.defaultRoute = (req) => {
+ config.defaultRoute = () => {
9
const res = new Response(null, {
10
status: 404
11
})
@@ -14,7 +14,7 @@ module.exports = (config = {}) => {
14
}
15
16
if (!config.errorHandler) {
17
- config.errorHandler = (err, req) => {
+ config.errorHandler = (err) => {
18
const res = new Response(err.message, {
19
status: 500
20
@@ -38,7 +38,7 @@ module.exports = (config = {}) => {
38
return this
39
40
41
- router.fetch = (req, step) => {
+ router.fetch = (req) => {
42
const url = new URL(req.url)
43
44
req.path = url.pathname || '/'
0 commit comments