From 94f2dbd19aeef7f6bc40a31a178a8a56c90f1aa1 Mon Sep 17 00:00:00 2001 From: Evan Luo Date: Sun, 2 Jun 2024 10:49:49 -0400 Subject: [PATCH] fix: update API endpoint to v2 in welcome.js for version info retrieval --- scripts/events/welcome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/events/welcome.js b/scripts/events/welcome.js index 63016820..151c44d3 100644 --- a/scripts/events/welcome.js +++ b/scripts/events/welcome.js @@ -12,7 +12,7 @@ hexo.on("ready", async () => { return new Promise((resolve, reject) => { https .get( - `https://redefine-version.ohevan.com/api/info`, + `https://redefine-version.ohevan.com/api/v2/info`, { timeout: timeout }, (response) => { if (response.statusCode < 200 || response.statusCode > 299) {