File size: 471 Bytes
4d95d94 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
// 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; |