提交 981c0f7d 编写于 作者: N Nzix

rename for neatness

上级 0d373be6
......@@ -89,9 +89,6 @@ fs.readdirSync(path.resolve(__dirname, 'router'))
file
.replace(/\.js$/i, '')
.replace(/_/g, '/')
.replace(/[A-Z]/g, a => {
return '/' + a.toLowerCase()
})
}
app.use(route, Wrap(require('./router/' + file)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册