nbbaier avatar
nbbaier
fetchPaginatedData
Script
Forked from stevekrouse/fetchJSON
1
nbbaier avatar
nbbaier
paginatedResponse
Script
Return a paginated response A helper function to take an array and return a paginated response. This is useful when defining one's own folders for pomdtr's vscode extension . Usage: const data = [...] export default async function(req: Request): Promise<Response> { return paginatedResponse(req, data); } For demo usage in the context of the vscode extension see this val .
1
1
Next
nbbaier-mirroredsearchapi.web.val.run
Updated: January 16, 2024