Skip to content

Commit

Permalink
fix: allow count header
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jul 1, 2024
1 parent b18e322 commit 13c229b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/api/src/routes/nfts-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export async function nftList(event, ctx) {
ok: true,
value: data.uploads?.map((n) => toNFTResponse(n)),
},
data.count != null ? { headers: { Count: data.count.toString() } } : {}
data.count != null
? {
headers: {
'Access-Control-Allow-Headers': 'Count',
Count: data.count.toString()
}
} : {}
)
}

0 comments on commit 13c229b

Please sign in to comment.