mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-10-24 02:08:55 +08:00
feat(route/yande): extend yande post route with popular category (#17319)
This commit is contained in:
@@ -1,13 +1,23 @@
|
||||
import { Route } from '@/types';
|
||||
import { Route, ViewType } from '@/types';
|
||||
import got from '@/utils/got';
|
||||
import queryString from 'query-string';
|
||||
|
||||
export const route: Route = {
|
||||
path: '/post/popular_recent/:period?',
|
||||
categories: ['picture'],
|
||||
categories: ['picture', 'popular'],
|
||||
view: ViewType.Pictures,
|
||||
example: '/yande/post/popular_recent/1d',
|
||||
parameters: {
|
||||
period: '展示时间',
|
||||
period: {
|
||||
description: '展示时间',
|
||||
options: [
|
||||
{ value: '1d', label: '最近 24 小时' },
|
||||
{ value: '1w', label: '最近一周' },
|
||||
{ value: '1m', label: '最近一月' },
|
||||
{ value: '1y', label: '最近一年' },
|
||||
],
|
||||
default: '1d',
|
||||
},
|
||||
},
|
||||
radar: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user