Refactor Dockerfile and docker-compose.yml to use new directory structure and update volume paths
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-05-08 01:12:12 +02:00
parent 4c5019ab51
commit 11856846d8
21 changed files with 781 additions and 475 deletions

30
models/swagger.js Normal file
View File

@@ -0,0 +1,30 @@
const swaggerJsDoc = require('swagger-jsdoc');
const swaggerUi = require('swagger-ui-express');
const swaggerOptions = {
swaggerDefinition: {
info: {
title: 'API - ManageMate',
version: '1.0-beta.1',
description: 'This documentation describes the ManageMate API.',
},
servers: [{ url: 'http://localhost:' + (process.env.PORT || 35665) }],
basePath: '/api/v1/',
},
apis: ['./routes/Dpanel/Api/*.js'],
};
const swaggerDocs = swaggerJsDoc(swaggerOptions);
const customCss = `
.swagger-ui .topbar .link {
display: none;
}
`;
module.exports = {
serve: swaggerUi.serve,
setup: swaggerUi.setup(swaggerDocs, {
customCss
}),
};