Files
RSSHub/lib/v2/wallhaven/radar.js
T
FatpandacandTony 64f26bdda7 feat(route): add wallhaven (#9021)
* Feat(route): add wallhaven

* Fix(route): merge #9022

* Fix(docs): Update docs/en/picture.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Fix(docs): Update docs/picture.md

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2022-02-08 20:21:15 +08:00

54 lines
1.8 KiB
JavaScript

module.exports = {
'wallhaven.cc': {
_name: 'wallhaven',
'.': [
{
title: 'Latest',
docs: 'https://docs.rsshub.app/picture.html#wallhaven-zhu-zhu-ti',
source: ['/:category', '/'],
target: (params) => {
if (params.category === 'latest') {
return '/wallhaven/latest';
}
},
},
{
title: 'Hot',
docs: 'https://docs.rsshub.app/picture.html#wallhaven-zhu-zhu-ti',
source: ['/:category', '/'],
target: (params) => {
if (params.category === 'hot') {
return '/wallhaven/hot';
}
},
},
{
title: 'TopList',
docs: 'https://docs.rsshub.app/picture.html#wallhaven-zhu-zhu-ti',
source: ['/:category', '/'],
target: (params) => {
if (params.category === 'toplist') {
return '/wallhaven/toplist';
}
},
},
{
title: 'Random',
docs: 'https://docs.rsshub.app/picture.html#wallhaven-zhu-zhu-ti',
source: ['/:category', '/'],
target: (params) => {
if (params.category === 'random') {
return '/wallhaven/random';
}
},
},
{
title: 'Search',
docs: 'https://docs.rsshub.app/picture.html#wallhaven-sou-xiao-sou-shao-suo',
source: ['/'],
target: '/wallhaven/search/:filter?/:needDetails?',
},
],
},
};