mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-21 12:49:53 +08:00
+1
-1
@@ -13,7 +13,7 @@ type Root = {
|
||||
const routes: Record<string, (root: Root) => void> = {};
|
||||
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
routes.test = require('./routes/test/router').default;
|
||||
routes.test = (await import('./routes/test/router')).default;
|
||||
} else {
|
||||
const imports = directoryImport({
|
||||
targetDirectoryPath: path.join(__dirname, './routes'),
|
||||
|
||||
Reference in New Issue
Block a user