mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 20:27:52 +08:00
Update journals.js
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
const got = require('@/utils/got');
|
const got = require('@/utils/got');
|
||||||
const cheerio = require('cheerio');
|
const cheerio = require('cheerio');
|
||||||
|
|
||||||
// 发起 HTTP GET 请求
|
|
||||||
module.exports = async (ctx) => {
|
module.exports = async (ctx) => {
|
||||||
//传入参数
|
//传入参数
|
||||||
const username = String(ctx.params.username);
|
const username = String(ctx.params.username);
|
||||||
|
|
||||||
//添加参数username
|
//添加参数username 和 发起 HTTP GET 请求
|
||||||
const response = await got({
|
const response = await got({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
url: `https://faexport.spangle.org.uk/user/${username}/journals.rss`,
|
url: `https://faexport.spangle.org.uk/user/${username}/journals.rss`,
|
||||||
|
|||||||
Reference in New Issue
Block a user