emilsoftware-utilities 1.3.82 → 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.
@@ -25,6 +25,9 @@ function initializeAccessiModule(app, options) {
25
25
  bufferLogs: true
26
26
  });
27
27
  nestApp.enableCors();
28
+ nestApp.setGlobalPrefix('api', {
29
+ exclude: ['/swagger', '/swagger/(.*)'], // Escludiamo Swagger
30
+ });
28
31
  yield nestApp.init();
29
32
  (0, SwaggerConfig_1.serveSwaggerDocs)(nestApp);
30
33
  console.log('Verifica API NestJS registrate:');
@@ -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.82",
3
+ "version": "1.3.84",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",