cal.pub0.org/pages/api/docs.ts

14 lines
270 B
TypeScript

import { withSwagger } from "next-swagger-doc";
const swaggerHandler = withSwagger({
definition: {
openapi: "3.0.0",
info: {
title: "Cal.com Public API",
version: "1.0.0",
},
},
apiFolder: "pages/api",
});
export default swaggerHandler();