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/(.*)'], //
|
|
29
|
+
exclude: ['/swagger', '/swagger/(.*)'], // Escludiamo Swagger
|
|
30
30
|
});
|
|
31
31
|
yield nestApp.init();
|
|
32
32
|
(0, SwaggerConfig_1.serveSwaggerDocs)(nestApp);
|
|
@@ -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
|
}
|