ryu-js / swagger.js
randydev's picture
Create swagger.js
4d95d94 verified
raw
history blame
471 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: ['./*.js'],
};
const swaggerDocs = swaggerJsDoc(swaggerOptions);
module.exports = swaggerDocs;