Skip to content

Commit

Permalink
feat(route/yande): extend yande post route with popular category (DIY…
Browse files Browse the repository at this point in the history
  • Loading branch information
NekoAria authored Nov 4, 2024
1 parent 7a11c6b commit 8b7568b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/routes/yande/post.ts
Original file line number Diff line number Diff line change
@@ -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: [
{
Expand Down

0 comments on commit 8b7568b

Please sign in to comment.