ryu-js / swagger.js
randydev's picture
Update swagger.js
37698a6 verified
raw
history blame
466 Bytes
// swagger.js
import swaggerJsDoc from 'swagger-jsdoc';
const swaggerOptions = {
definition: {
openapi: '3.0.0',
info: {
title: 'AkenoX API Js',
version: '1.0.0',
description: 'API documentation for my project',
},
servers: [
{
url: 'https://randydev-ryu-js.hf.space', // Your API base URL
},
],
},
apis: ['./*.js'],
};
const swaggerDocs = swaggerJsDoc(swaggerOptions);
module.exports = swaggerDocs;