emilsoftware-utilities 1.3.78 → 1.3.79
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.
|
@@ -31,14 +31,10 @@ function initializeAccessiModule(app, options) {
|
|
|
31
31
|
const nestApp = yield core_1.NestFactory.create(AccessiModule_1.AccessiModule.forRoot(options), expressAdapter, { bufferLogs: true });
|
|
32
32
|
nestApp.enableCors();
|
|
33
33
|
yield nestApp.init();
|
|
34
|
-
//
|
|
34
|
+
// Montiamo NestJS su /api/accessi
|
|
35
35
|
app.use('/api/accessi', nestExpressInstance);
|
|
36
36
|
// Serviamo Swagger
|
|
37
37
|
(0, SwaggerConfig_1.serveSwaggerDocs)(nestApp);
|
|
38
|
-
// Debug: Controlla se Nest sta registrando le rotte
|
|
39
|
-
console.log('NestJS Routes:', nestApp.getHttpServer()._events.request._router.stack
|
|
40
|
-
.map((r) => { var _a; return (_a = r.route) === null || _a === void 0 ? void 0 : _a.path; })
|
|
41
|
-
.filter(Boolean));
|
|
42
38
|
}
|
|
43
39
|
catch (error) {
|
|
44
40
|
console.error("Error occurred in initializeAccessiModule:", error);
|