RSSHub/lib/routes/micmicidol/search.js

8 lines
213 B
JavaScript

const parse = require('./parse');
module.exports = (ctx) => {
const max = ctx.query.limit || 50;
const { label } = ctx.params;
return parse(ctx, `search/label/${label}?max-results=${max}`, label);
};