mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-19 14:51:52 +08:00
5146d11295
* fix(route): change domain name and refactor to V2 * docs: fix sobooks
8 lines
244 B
JavaScript
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('-', '/')}`);
|
|
};
|