emilsoftware-utilities 1.3.83 → 1.3.84

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.
@@ -26,7 +26,7 @@ function initializeAccessiModule(app, options) {
26
26
  });
27
27
  nestApp.enableCors();
28
28
  nestApp.setGlobalPrefix('api', {
29
- exclude: ['/swagger', '/swagger/(.*)'], // 🔥 Escludiamo Swagger
29
+ exclude: ['/swagger', '/swagger/(.*)'], // Escludiamo Swagger
30
30
  });
31
31
  yield nestApp.init();
32
32
  (0, SwaggerConfig_1.serveSwaggerDocs)(nestApp);
@@ -1,3 +1,2 @@
1
- import { Application } from 'express';
2
1
  import { INestApplication } from '@nestjs/common';
3
- export declare function serveSwaggerDocs(app: INestApplication | Application): void;
2
+ export declare function serveSwaggerDocs(app: INestApplication): void;
@@ -7,8 +7,10 @@ function serveSwaggerDocs(app) {
7
7
  .setTitle('Accessi API')
8
8
  .setDescription('Documentazione delle API per la gestione degli accessi')
9
9
  .setVersion('1.0')
10
- .addServer('http://localhost:3000/api/accessi') // Cambia se necessario
10
+ .addServer('/')
11
11
  .build();
12
12
  const document = swagger_1.SwaggerModule.createDocument(app, config);
13
- swagger_1.SwaggerModule.setup('/swagger/accessi', app, document);
13
+ swagger_1.SwaggerModule.setup('swagger/accessi', app, document, {
14
+ customSiteTitle: 'Documentazione Accessi',
15
+ });
14
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emilsoftware-utilities",
3
- "version": "1.3.83",
3
+ "version": "1.3.84",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",