similar behavior cds w bookstore cds w compose
This commit is contained in:
8
compose/server.js
Normal file
8
compose/server.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const cds = require ('@sap/cds')
|
||||
|
||||
// Add Swagger UI
|
||||
require('./srv/swagger-ui')
|
||||
|
||||
// For didactic reasons in capire
|
||||
const { ReviewsService, OrdersService } = cds.requires
|
||||
if (!ReviewsService?.credentials && !OrdersService?.credentials) cds.requires.messaging = false
|
||||
Reference in New Issue
Block a user