@sap/approuter + Erweiterungen

AG UI-Technologien - Volker Buzek

@sap/approuter

  • npm-Modul
  • 'db,srv,app' → mta build → CP cf

@sap/approuter

src: @sap/approuter docu

approuter


                                const xsAppConfig = JSON.parse(
                                    fs.readFileSync('xs-app.json', 'utf8')
                                )
                                require('@sap/approuter').start({
                                    xsappConfig: xsAppConfig
                                })
                        

approuter Erweiterung


const approuter = require('@sap/approuter');
const ar = approuter();
// inject lmiddlewware
ar.use(middleware);
ar.start({
    xsappConfig: xsAppConfig
});
                        

/me