initial commit
Todas las comprobaciones han sido exitosas
continuous-integration/drone Build is passing

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-07-18 22:19:35 +02:00
commit bfaab359eb
Se han modificado 46 ficheros con 10305 adiciones y 0 borrados

25
back/lib/swagger.js Archivo normal
Ver fichero

@@ -0,0 +1,25 @@
module.exports = app => {
const swaggerJsdoc = require('swagger-jsdoc'),
swaggerUi = require('swagger-ui-express'),
options = {
swaggerOptions: {
withCredentials: false
},
swaggerDefinition: {
restapi: '3.1.0',
info: {
title: 'Fediblock Instance API',
version: '1.0.0',
description: '#Fediblock Instance REST API',
},
servers: [
{
url: 'http://localhost:3000',
},
],
},
apis: ['**/apiswagger.js'],
},
specs = swaggerJsdoc(options)
app.use('/api-docs', swaggerUi.serve, swaggerUi.setup(specs, { explorer: false }))
}