emilsoftware-utilities 1.3.84 → 1.3.86

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,13 +26,13 @@ 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/(.*)']
30
30
  });
31
31
  yield nestApp.init();
32
32
  (0, SwaggerConfig_1.serveSwaggerDocs)(nestApp);
33
33
  console.log('Verifica API NestJS registrate:');
34
- const expressInstance = nestApp.getHttpAdapter().getInstance();
35
- const router = expressInstance.router;
34
+ const server = nestApp.getHttpAdapter().getInstance();
35
+ const router = server.router;
36
36
  const availableRoutes = router.stack
37
37
  .map(layer => {
38
38
  var _a, _b;
@@ -12,5 +12,9 @@ function serveSwaggerDocs(app) {
12
12
  const document = swagger_1.SwaggerModule.createDocument(app, config);
13
13
  swagger_1.SwaggerModule.setup('swagger/accessi', app, document, {
14
14
  customSiteTitle: 'Documentazione Accessi',
15
+ swaggerOptions: {
16
+ url: '/swagger/accessi-json'
17
+ },
15
18
  });
19
+ console.log('✅ Swagger UI disponibile su http://localhost:3000/swagger/accessi');
16
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emilsoftware-utilities",
3
- "version": "1.3.84",
3
+ "version": "1.3.86",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",