emilsoftware-utilities 1.3.83 → 1.3.85
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/(.*)'], //
|
|
29
|
+
exclude: ['/swagger', '/swagger/(.*)'], // Escludiamo 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
|
|
35
|
-
const 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;
|
|
@@ -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('
|
|
10
|
+
.addServer('/')
|
|
11
11
|
.build();
|
|
12
12
|
const document = swagger_1.SwaggerModule.createDocument(app, config);
|
|
13
|
-
swagger_1.SwaggerModule.setup('
|
|
13
|
+
swagger_1.SwaggerModule.setup('swagger/accessi', app, document, {
|
|
14
|
+
customSiteTitle: 'Documentazione Accessi',
|
|
15
|
+
});
|
|
14
16
|
}
|