Files
cal.diy/lib/helpers/withCorsMiddleware.ts
T

13 lines
251 B
TypeScript

import { label } from "next-api-middleware";
import { withCors } from "./withCors";
const withCorsMiddleware = label(
{
withCors,
},
["withCors"] // <-- Provide a list of middleware to call automatically
);
export { withCorsMiddleware };