Add approuter
This commit is contained in:
19
multitenancy/app/package.json
Normal file
19
multitenancy/app/package.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "approuter",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"devDependencies": {},
|
||||
"engines": {
|
||||
"node": "^12.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node node_modules/@sap/approuter/approuter.js"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@sap/approuter": ">=9.0.2"
|
||||
}
|
||||
}
|
||||
@@ -4,9 +4,8 @@
|
||||
|
||||
using from './admin/fiori-service';
|
||||
using from './browse/fiori-service';
|
||||
using from './orders/fiori-service';
|
||||
using from './common';
|
||||
|
||||
using from '../db/capire_common';
|
||||
|
||||
// only works in case of embedded orders service
|
||||
// using from './orders/app/orders/fiori-service';
|
||||
|
||||
28
multitenancy/app/xs-app.json
Normal file
28
multitenancy/app/xs-app.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"welcomeFile": "/admin-fiori.html",
|
||||
"authenticationMethod": "route",
|
||||
"sessionTimeout": 30,
|
||||
"logout": {
|
||||
"logoutEndpoint": "/do/logout",
|
||||
"logoutPage": "/"
|
||||
},
|
||||
"routes": [
|
||||
{
|
||||
"source": "^/((admin|browse|orders)/webapp/.*)$",
|
||||
"target": "$1",
|
||||
"localDir": ".",
|
||||
"authenticationType": "xsuaa"
|
||||
},
|
||||
{
|
||||
"source": "^(/[^/]+\\.html(\\?.*)?)$",
|
||||
"target": "$1",
|
||||
"localDir": ".",
|
||||
"authenticationType": "xsuaa"
|
||||
},
|
||||
{
|
||||
"source": "^.*$",
|
||||
"destination": "srv-api",
|
||||
"authenticationType": "xsuaa"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user