From af3dcdacf93564b35c8addeeff2d4c554dc7e855 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 6 Nov 2022 15:15:14 +0800 Subject: [PATCH] update api --- scripts/tags/friends.js | 2 +- scripts/tags/sites.js | 2 +- source/js/plugins/linkcard.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/tags/friends.js b/scripts/tags/friends.js index d02d9e0..956e168 100644 --- a/scripts/tags/friends.js +++ b/scripts/tags/friends.js @@ -17,7 +17,7 @@ hexo.extend.tag.register('friends', function(args) { if (args.api) { api = args.api; } else if (args.repo) { - api = 'https://data.json.vlts.cc/v2/' + args.repo; + api = 'https://api.vlts.cc/output_data/v2/' + args.repo; } var el = '
'; diff --git a/scripts/tags/sites.js b/scripts/tags/sites.js index 52134f8..2bd483e 100644 --- a/scripts/tags/sites.js +++ b/scripts/tags/sites.js @@ -17,7 +17,7 @@ hexo.extend.tag.register('sites', function(args) { if (args.api) { api = args.api; } else if (args.repo) { - api = 'https://data.json.vlts.cc/v2/' + args.repo; + api = 'https://api.vlts.cc/output_data/v2/' + args.repo; } var el = '
'; diff --git a/source/js/plugins/linkcard.js b/source/js/plugins/linkcard.js index 1113c7f..b7be0de 100644 --- a/source/js/plugins/linkcard.js +++ b/source/js/plugins/linkcard.js @@ -33,7 +33,7 @@ function setCardLink(nodes) { if (el.nodeType !== 1) return el.removeAttribute('cardlink'); const link = el.href; - const api = 'https://site-info.vlts.cc/api?url='; + const api = 'https://api.vlts.cc/site_info/v1?url='; fetch(api + link).then(function(response) { if (response.ok) { return response.json();