cal.pub0.org/lib/helpers/extendRequest.ts

10 lines
201 B
TypeScript
Raw Normal View History

2022-06-06 16:17:10 +00:00
import { NextMiddleware } from "next-api-middleware";
export const extendRequest: NextMiddleware = async (req, res, next) => {
2022-07-05 18:12:14 +00:00
req.pagination = {
take: 100,
skip: 0,
};
2022-06-06 16:17:10 +00:00
await next();
};