Files
RSSHub/lib/v2/sobooks/date.js
Fatpandac 5146d11295 fix(route): sobooks change domain name and refactor to V2 (#9833)
* fix(route): change domain name and refactor to V2

* docs: fix sobooks
2022-05-27 19:46:31 +08:00

8 lines
244 B
JavaScript

const utils = require('./utils');
module.exports = async (ctx) => {
const date = ctx.params.date ?? `${new Date().getFullYear()}/${new Date().getMonth()}`;
ctx.state.data = await utils(ctx, `books/date/${date.replace('-', '/')}`);
};