8 lines
230 B
JavaScript
8 lines
230 B
JavaScript
const { getPage, normalizeKeyword } = require('./util');
|
|
|
|
module.exports = async (ctx) => {
|
|
const { type } = ctx.params;
|
|
|
|
ctx.state.data = await getPage(`https://tits-guru.com/category/${normalizeKeyword(type)}/date`);
|
|
};
|