Files
RSSHub/lib/v2/crossbell/notes/index.js
2023-02-14 20:09:36 +00:00

17 lines
436 B
JavaScript

const got = require('@/utils/got');
const { getItem } = require('./utils');
module.exports = async (ctx) => {
const response = await got('https://indexer.crossbell.io/v1/notes', {
searchParams: {
includeCharacter: true,
},
});
ctx.state.data = {
title: 'Crossbell Notes',
link: 'https://crossbell.io/',
item: response.data?.list?.map((item) => getItem(item)),
};
};