mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-03 18:48:12 +08:00
feat(route): add AtCoder (#8825)
This commit is contained in:
22
lib/v2/atcoder/radar.js
Normal file
22
lib/v2/atcoder/radar.js
Normal file
@@ -0,0 +1,22 @@
|
||||
module.exports = {
|
||||
'atcoder.jp': {
|
||||
_name: 'AtCoder',
|
||||
'.': [
|
||||
{
|
||||
title: 'Posts',
|
||||
docs: 'https://docs.rsshub.app/programming.html#atcoder-posts',
|
||||
source: ['/posts', '/'],
|
||||
target: (params, url) => `/atcoder/post/${new URL(url).searchParams.get('lang') ?? 'en'}/${new URL(url).searchParams.get('keyword') ?? ''}`,
|
||||
},
|
||||
{
|
||||
title: 'Contests',
|
||||
docs: 'https://docs.rsshub.app/programming.html#atcoder-contests',
|
||||
source: ['/contests/archive', '/contests', ''],
|
||||
target: (params, url) =>
|
||||
`/atcoder/content/${new URL(url).searchParams.get('lang') ?? 'en'}/${new URL(url).searchParams.get('ratedType') ?? '0'}/${new URL(url).searchParams.get('category') ?? '0'}/${
|
||||
new URL(url).searchParams.get('keyword') ?? ''
|
||||
}`,
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user