Files
RSSHub/lib/v2/oshwhub/radar.js
T
tylinux e4ae95e9f2 feat(route): add oshwhub.com support (#12094)
* feat(route): add oshwhub.com support

* Update docs/en/other.md

* Update docs/other.md

* feat(route): fix cache logic and radar target

* Update lib/v2/oshwhub/radar.js

* fix typo

---------
2023-03-14 20:28:06 +11:00

17 lines
530 B
JavaScript

module.exports = {
'oshwhub.com': {
_name: '立创开源硬件平台',
'.': [
{
title: '开源广场',
docs: 'https://docs.rsshub.app/other.html#li-chuang-kai-yuan-ying-jian-ping-tai',
source: ['/explore'],
target: (_, url) => {
const sortType = new URL(url).searchParams.get('projectSort');
return sortType ? `/oshwhub/${sortType}` : '';
},
},
],
},
};