17 lines
502 B
JavaScript
17 lines
502 B
JavaScript
const { getPage, normalizeKeyword } = require('./util');
|
|
|
|
module.exports = async (ctx) => {
|
|
const { name } = ctx.params;
|
|
|
|
const formalName = normalizeKeyword(name)
|
|
.split('-')
|
|
.map((word) => `${word[0].toUpperCase()}${word.substr(1)}`)
|
|
.join(' ');
|
|
|
|
ctx.state.data = {
|
|
...(await getPage(`https://tits-guru.com/boobs-model/${normalizeKeyword(name)}/date`)),
|
|
title: `TitsGuru - ${formalName}`,
|
|
description: `TitsGuru - ${formalName}`,
|
|
};
|
|
};
|