Re-run cds add mtx
This commit is contained in:
24
fiori/app/xs-app.json
Normal file
24
fiori/app/xs-app.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"authenticationMethod": "route",
|
||||
"routes": [
|
||||
{
|
||||
"source": "^/-/cds/.*",
|
||||
"destination": "mtx-api",
|
||||
"authenticationType": "none"
|
||||
},
|
||||
{
|
||||
"source": "^/app/(.*)$",
|
||||
"target": "$1",
|
||||
"localDir": ".",
|
||||
"authenticationType": "xsuaa",
|
||||
"cacheControl": "no-cache, no-store, must-revalidate"
|
||||
},
|
||||
{
|
||||
"source": "^/(.*)$",
|
||||
"target": "$1",
|
||||
"destination": "srv-api",
|
||||
"authenticationType": "xsuaa",
|
||||
"csrfProtection": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
---
|
||||
_schema-version: '3.1'
|
||||
ID: capire.fiori
|
||||
version: 1.0.0
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
}
|
||||
},
|
||||
"db": {
|
||||
"kind": "sql"
|
||||
"kind": "sql-mt"
|
||||
},
|
||||
"db-ext": {
|
||||
"[development]": {
|
||||
@@ -57,7 +57,9 @@
|
||||
"toggles": true,
|
||||
"extensibility": true,
|
||||
"cds.xt.ExtensibilityService": {
|
||||
"element-prefix": ["x_"],
|
||||
"element-prefix": [
|
||||
"x_"
|
||||
],
|
||||
"extension-allowlist": [
|
||||
{
|
||||
"for": [
|
||||
|
||||
@@ -10,6 +10,6 @@ module.exports = require('@capire/bookstore/server.js')
|
||||
// For didactic reasons in capire, run below services embedded
|
||||
// TODO find a better way to switch this
|
||||
if (cds.requires.multitenancy) {
|
||||
cds.requires.OrdersService = null
|
||||
cds.requires.ReviewsService = null
|
||||
delete cds.env.requires.OrdersService
|
||||
delete cds.env.requires.ReviewsService
|
||||
}
|
||||
Reference in New Issue
Block a user