2022-03-31 20:14:37 +00:00
|
|
|
import pjson from "@/package.json";
|
2022-03-30 14:56:24 +00:00
|
|
|
import { withSwagger } from "next-swagger-doc";
|
|
|
|
|
|
|
|
const swaggerHandler = withSwagger({
|
|
|
|
definition: {
|
|
|
|
openapi: "3.0.0",
|
|
|
|
info: {
|
2022-03-31 20:14:37 +00:00
|
|
|
title: `${pjson.name}: ${pjson.description}`,
|
|
|
|
version: pjson.version,
|
2022-03-30 14:56:24 +00:00
|
|
|
},
|
2022-03-31 20:14:37 +00:00
|
|
|
tags: ["users", "teams"],
|
2022-03-30 14:56:24 +00:00
|
|
|
},
|
|
|
|
apiFolder: "pages/api",
|
|
|
|
});
|
|
|
|
export default swaggerHandler();
|