We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1e5dd4 commit 1029a90Copy full SHA for 1029a90
index.js
@@ -56,6 +56,8 @@ module.exports = function router (routesDir, config) {
56
let extPattern = new RegExp(path.extname(routeFile) + '$')
57
if (!route.path) {
58
route.path = '/' + path.relative(routesDir, routeFile).replace(extPattern, '')
59
+ //Fix issue with windows paths
60
+ route.path = route.path.replace(/\\/, '/')
61
}
62
return route
63
})
0 commit comments