21 lines
412 B
JavaScript
21 lines
412 B
JavaScript
|
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);
|