emilsoftware-utilities 1.3.21 → 1.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,18 +16,18 @@ var swaggerDefinition = {
16
16
  },
17
17
  servers: [
18
18
  {
19
- url: 'http://localhost:3000/api', // Modifica se necessario
19
+ url: 'http://localhost:3000/api/accessi', // Modifica se necessario
20
20
  },
21
21
  ],
22
22
  };
23
23
  var options = {
24
24
  swaggerDefinition: swaggerDefinition,
25
25
  // Specifica i file sorgenti che contengono le annotazioni Swagger
26
- apis: ['./src/accessi-module/*.ts'], // Aggiungi altri file se necessario
26
+ apis: ['./dist/accessi-module/**/*.js'], // Aggiungi altri file se necessario
27
27
  };
28
- // Crea il documento Swagger
29
- var swaggerSpec = (0, swagger_jsdoc_1.default)(options);
30
28
  // Funzione per esporre la documentazione Swagger tramite Express
31
29
  function serveSwaggerDocs(app) {
32
- app.use('/api-accessi-docs', swagger_ui_express_1.default.serve, swagger_ui_express_1.default.setup(swaggerSpec));
30
+ // Crea il documento Swagger
31
+ var swaggerSpec = (0, swagger_jsdoc_1.default)(options);
32
+ app.use('/swagger/accessi', swagger_ui_express_1.default.serve, swagger_ui_express_1.default.setup(swaggerSpec));
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emilsoftware-utilities",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",