Update journals.js

This commit is contained in:
小虎故洞
2021-02-15 21:29:50 +08:00
committed by GitHub
parent 98df852969
commit 7ee8b39557

View File

@@ -1,12 +1,11 @@
const got = require('@/utils/got');
const cheerio = require('cheerio');
// 发起 HTTP GET 请求
module.exports = async (ctx) => {
//传入参数
const username = String(ctx.params.username);
//添加参数username
//添加参数username 和 发起 HTTP GET 请求
const response = await got({
method: 'get',
url: `https://faexport.spangle.org.uk/user/${username}/journals.rss`,