Files
RSSHub/lib/v2/dribbble/keyword.js
T
Nexmoe 6fc2c4b500 chore(route): support for new dribbble (#13243)
* chore(route): support for new dribbble

* chore: date and author support

* refactor: migrate to v2

---------
2023-09-10 21:57:37 +08:00

11 lines
297 B
JavaScript

const utils = require('./utils');
module.exports = async (ctx) => {
const keyword = ctx.params.keyword;
const url = `https://dribbble.com/search/shots/recent?q=${keyword}`;
const title = `Dribbble - keyword ${keyword}`;
ctx.state.data = await utils.getData(ctx, url, title);
};