mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-08-30 16:55:08 +08:00
feat: rename routes.ts to init-routes.ts
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ import parameter from '@/middleware/parameter';
|
||||
|
||||
import logger from '@/utils/logger';
|
||||
|
||||
import routes from '@/routes.ts';
|
||||
import initRoutes from '@/init-routes';
|
||||
import { notFoundHandler, errorHandler } from '@/errors';
|
||||
|
||||
process.on('uncaughtException', (e) => {
|
||||
@@ -36,7 +36,7 @@ app.use(antiHotlink);
|
||||
app.use(parameter);
|
||||
app.use(cache);
|
||||
|
||||
routes(app);
|
||||
initRoutes(app);
|
||||
|
||||
app.notFound(notFoundHandler);
|
||||
app.onError(errorHandler);
|
||||
|
||||
Reference in New Issue
Block a user