ui
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user