Skip to content

Commit

Permalink
feat: rss3 route docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jul 22, 2024
1 parent ce0e081 commit b23bb63
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions lib/routes/rss3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,64 +17,74 @@ export const route: Route = {
},
network: {
description: 'Retrieve activities from the specified network.',
default: 'all',
options: [
{
value: 'all',
label: 'All',
},
{
value: 'arbitrum',
label: 'arbitrum',
label: 'Arbitrum',
},
{
value: 'arweave',
label: 'arweave',
label: 'Arweave',
},
{
value: 'avax',
label: 'avax',
label: 'Avax',
},
{
value: 'base',
label: 'base',
label: 'Base',
},
{
value: 'binance-smart-chain',
label: 'binance-smart-chain',
label: 'Binance Smart Chain',
},
{
value: 'crossbell',
label: 'crossbell',
label: 'Crossbell',
},
{
value: 'ethereum',
label: 'ethereum',
label: 'Ethereum',
},
{
value: 'farcaster',
label: 'farcaster',
label: 'Farcaster',
},
{
value: 'gnosis',
label: 'gnosis',
label: 'Gnosis',
},
{
value: 'linea',
label: 'linea',
label: 'Linea',
},
{
value: 'optimism',
label: 'optimism',
label: 'Optimism',
},
{
value: 'polygon',
label: 'polygon',
label: 'Polygon',
},
{
value: 'vsl',
label: 'vsl',
label: 'VSL',
},
],
},
tag: {
description: 'Retrieve activities from the specified tag.',
default: 'all',
options: [
{
value: 'all',
label: 'All',
},
{
value: 'collectible',
label: 'collectible',
Expand Down Expand Up @@ -114,8 +124,8 @@ async function handler(ctx) {
const { data } = await ofetch(
`https://gi.rss3.io/decentralized/${account}?${new URLSearchParams({
limit: '20',
...(network && { network }),
...(tag && { tag }),
...(network && network !== 'all' && { network }),
...(tag && tag !== 'all' && { tag }),
})}`
);

Expand Down

0 comments on commit b23bb63

Please sign in to comment.