Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 💩 Move to ESM as much as I can #14619

Merged
merged 10 commits into from
Mar 1, 2024
Prev Previous commit
Next Next commit
feat: remove unclean require in router.js
DIYgod committed Mar 1, 2024
commit a2a3e1b58b3804644c3fe8cc35780a15aff6ad89
2 changes: 1 addition & 1 deletion lib/routes/ciweimao/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default (router) => {
router.get('/chapter/:id', require('./chapter'));
router.get('/chapter/:id', './chapter');
};
2 changes: 1 addition & 1 deletion lib/routes/hbooker/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default (router) => {
router.get('/chapter/:id', require('./chapter'));
router.get('/chapter/:id', './chapter');
};
2 changes: 1 addition & 1 deletion lib/routes/sfacg/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default (router) => {
router.get('/novel/chapter/:id', require('./novel-chapter'));
router.get('/novel/chapter/:id', './novel-chapter');
};
2 changes: 1 addition & 1 deletion lib/routes/tvtropes/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default (router) => {
router.get('/featured/:category?', require('./featured'));
router.get('/featured/:category?', './featured');
};
2 changes: 1 addition & 1 deletion lib/routes/wmpvp/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default (router) => {
router.get('/news/:type', require('.'));
router.get('/news/:type', './index');
};
2 changes: 1 addition & 1 deletion lib/routes/zrblog/router.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default (router) => {
router.get('/', require('./rss'));
router.get('/', './rss');
};