RSSHub/lib/v2/caareviews/book.js

15 lines
325 B
JavaScript

const { rootUrl, getList, getItems } = require('./utils');
module.exports = async (ctx) => {
const url = `${rootUrl}/reviews/book`;
const list = await getList(url);
const items = await getItems(ctx, list);
ctx.state.data = {
title: 'Book Reviews',
link: url,
item: items,
};
};