diff --git a/index.js b/index.js index 1752215..b475b86 100644 --- a/index.js +++ b/index.js @@ -8,8 +8,8 @@ const url = require('url') function _defaultRoutes(additionRoutes) { return { ...additionRoutes, - '/*': function({handle, req, res, parsedUrl}) { - handle(req, res, parsedUrl) + '*': function({handle, req, res}) { + handle(req, res) }, } } diff --git a/package.json b/package.json index 7b4062c..6dc4a82 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "next-routes-middleware", - "version": "1.0.4", + "version": "1.0.6", "description": "Express middleware for Next.js dynamic routes", "main": "index.js", "scripts": { @@ -9,8 +9,12 @@ "author": "Truong Hoang Dung (@revskill10)", "license": "MIT", "dependencies": { - "mobile-detect": "^1.4.3", - "path-match": "^1.2.4", - "path-to-regexp": "^2.4.0" + "mobile-detect": "1.4.3", + "path-match": "1.2.4", + "path-to-regexp": "2.4.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/revskill10/next-template.git" } }