cal.pub0.org/pages/api/bookings/[id]/cancel.ts

15 lines
425 B
TypeScript
Raw Normal View History

2023-02-16 21:01:40 +00:00
import type { NextApiRequest, NextApiResponse } from "next";
import { defaultHandler } from "@calcom/lib/server";
2022-11-25 13:56:58 +00:00
import { withMiddleware } from "~/lib/helpers/withMiddleware";
import authMiddleware from "./_auth-middleware";
export default withMiddleware()(async (req: NextApiRequest, res: NextApiResponse) => {
await authMiddleware(req);
return defaultHandler({
DELETE: import("./_delete"),
})(req, res);
});