paginatedResponse
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
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);
}