mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 05:03:44 +08:00
18 lines
545 B
JavaScript
18 lines
545 B
JavaScript
module.exports = {
|
|
'mirror.xyz': {
|
|
_name: 'Mirror',
|
|
'.': [
|
|
{
|
|
title: 'User',
|
|
docs: 'https://docs.rsshub.app/new-media.html#mirror-user',
|
|
source: ['/:id', '/'],
|
|
target: (params, url) => {
|
|
const matches = new URL(url).toString().match(/https:\/\/(.*?)\.mirror\.xyz/);
|
|
const id = matches ? matches[1] : params.id;
|
|
return `/mirror/${id}`;
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|