refactor: 重构部署功能

This commit is contained in:
2026-01-08 19:50:58 +08:00
parent a067d167e9
commit db2b2af0d3
13 changed files with 79 additions and 97 deletions

View File

@@ -6,6 +6,9 @@ import {
type RouteMetadata,
} from '../decorators/route.ts';
import { createSuccessResponse } from '../middlewares/exception.ts';
import { log } from './logger.ts';
const TAG = 'RouteScanner';
/**
* 控制器类型
@@ -79,7 +82,7 @@ export class RouteScanner {
this.router.patch(fullPath, handler);
break;
default:
console.warn(`未支持的HTTP方法: ${route.method}`);
log.info(TAG, `未支持的HTTP方法: ${route.method}`);
}
});
}