This commit is contained in:
Wolfgang Koch
2021-05-04 14:09:15 +02:00
parent 309c76caae
commit 81f762d7be
40 changed files with 9681 additions and 5241 deletions

View File

@@ -1,9 +1,18 @@
const cds = require ('@sap/cds');
const cds = require ('@sap/cds')
cds.once('bootstrap',(app)=>{
//app.use ('/orders/webapp', _from('./app/orders/webapp/manifest.json'))
//app.use ('/bookshop', _from('@capire/bookshop/app/vue/index.html'))
//app.use ('/reviews', _from('@capire/reviews/app/vue/index.html'))
})
cds.once('served', require('./srv/mashup'))
module.exports = cds.server
cds.on('bootstrap', async app => {
await cds.mtx.in(app);
});
module.exports = cds.server;
// -----------------------------------------------------------------------
// Helper for serving static content from npm-installed packages
const {static} = require('express')
const {dirname} = require('path')
const _from = target => static (dirname (require.resolve(target)))