v2-dev
xiaojunnuo 2025-01-22 15:35:28 +08:00
parent 2eb0d55f92
commit a773872cf3
1 changed files with 6 additions and 5 deletions

View File

@ -15,12 +15,13 @@ export class AppController extends BaseController {
@Get('/latest', { summary: Constants.per.authOnly })
async latest(): Promise<any> {
try {
const res = await http.request({
url: 'https://registry.npmmirror.com/@certd/pipeline',
method: 'get',
logRes: false,
timeout: 5000,
});
try {
const latest = res['dist-tags'].latest;
return this.ok(latest);
} catch (e: any) {