feat(twitter): radar

This commit is contained in:
DIYgod
2024-03-19 22:42:08 +08:00
parent ebbaf45c3b
commit 75354f7620
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -30,6 +30,12 @@ export const route: Route = {
name: 'Home timeline',
maintainers: ['DIYgod'],
handler,
radar: [
{
source: ['twitter.com/home'],
target: '/home',
},
],
};
async function handler(ctx) {
+6
View File
@@ -31,6 +31,12 @@ export const route: Route = {
name: 'List timeline',
maintainers: ['DIYgod', 'xyqfer'],
handler,
radar: [
{
source: ['twitter.com/i/lists/:id'],
target: '/list/:id',
},
],
};
async function handler(ctx) {