mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-10 23:34:38 +08:00
17 lines
460 B
JavaScript
17 lines
460 B
JavaScript
const template = require('./utils');
|
|
const userposts = require('./userposts');
|
|
module.exports = async (ctx) => {
|
|
const utype = ctx.params.utype;
|
|
const uid = ctx.params.uid;
|
|
|
|
// userposts 页面结构不同,单独写路由
|
|
if (utype === 'userposts') {
|
|
await userposts(ctx);
|
|
} else {
|
|
ctx.state.data = {
|
|
link: `http://www.javlibrary.com/cn/${utype}.php?u=${uid}`,
|
|
};
|
|
await template(ctx);
|
|
}
|
|
};
|