ryu-js / swagger.js
randydev's picture
Update swagger.js
930b92c verified
raw
history blame
478 Bytes
// swagger.js
const swaggerJsDoc = require('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: ['./routes/*.js'],
};
const swaggerDocs = swaggerJsDoc(swaggerOptions);
module.exports = swaggerDocs;