feat: rename routes.ts to init-routes.ts

This commit is contained in:
DIYgod
2024-03-04 00:48:04 +08:00
parent a10bafb263
commit 0cb0a6bd69
3 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -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);