RSSHub/lib/routes/dribbble/popular.js

8 lines
251 B
JavaScript

const utils = require('./utils');
module.exports = async (ctx) => {
const timeframe = ctx.params.timeframe;
ctx.state.data = await utils.getData('Popular Shots', `https://dribbble.com/shots${timeframe ? `?timeframe=${timeframe}` : ''}`);
};