liblibgo/backend/swagger-options.js

21 lines
412 B
JavaScript
Raw Permalink Normal View History

2023-03-20 16:24:34 +00:00
import swaggerJSDoc from "swagger-jsdoc";
import pkg from "./package.json" assert { type: "json" };
const options = {
definition: {
openapi: "3.0.0",
info: {
title: "LibLibGo API",
version: pkg.version,
contact: {
name: "Website",
url: "https://nerdcult.net/",
},
},
},
apis: ["./routes/*.js"],
};
export const swaggerOptions = swaggerJSDoc(options);