mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-29 07:27:22 +08:00
* chore(route): support for new dribbble * chore: date and author support * refactor: migrate to v2 ---------
11 lines
322 B
JavaScript
11 lines
322 B
JavaScript
const utils = require('./utils');
|
|
|
|
module.exports = async (ctx) => {
|
|
const timeframe = ctx.params.timeframe;
|
|
const url = `https://dribbble.com/shots/popular${timeframe ? `?timeframe=${timeframe}` : ''}`;
|
|
|
|
const title = 'Dribbble - Popular Shots';
|
|
|
|
ctx.state.data = await utils.getData(ctx, url, title);
|
|
};
|