feat(route/yande): extend yande post route with popular category (#17319)

This commit is contained in:
Neko Aria
2024-11-05 03:30:44 +07:00
committed by GitHub
parent 7a11c6bbfa
commit 8b7568bf4f
+13 -3
View File
@@ -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: [
{