mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
refactor: rename axios to got
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const axios = require('@/utils/axios');
|
||||
const got = require('@/utils/got');
|
||||
const config = require('@/config');
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
@@ -17,7 +17,7 @@ module.exports = async (ctx) => {
|
||||
reqParams.access_token = config.github.access_token;
|
||||
}
|
||||
|
||||
const res = await axios.get(`https://api.github.com/repos/${user}/${repo}/commits`, {
|
||||
const res = await got.get(`https://api.github.com/repos/${user}/${repo}/commits`, {
|
||||
params: reqParams,
|
||||
});
|
||||
const list = res.data;
|
||||
|
||||
Reference in New Issue
Block a user