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

10 lines
206 B
TypeScript
Raw Normal View History

2023-02-16 21:01:40 +00:00
import type { NextMiddleware } from "next-api-middleware";
2022-06-06 16:17:10 +00:00
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();
};