Re-run cds add mtx

This commit is contained in:
Daniel
2022-10-03 12:10:05 +02:00
parent f50afdbd69
commit fdd1d86ac7
4 changed files with 30 additions and 5 deletions

24
fiori/app/xs-app.json Normal file
View 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
}
]
}

View File

@@ -1,4 +1,3 @@
---
_schema-version: '3.1' _schema-version: '3.1'
ID: capire.fiori ID: capire.fiori
version: 1.0.0 version: 1.0.0

View File

@@ -43,7 +43,7 @@
} }
}, },
"db": { "db": {
"kind": "sql" "kind": "sql-mt"
}, },
"db-ext": { "db-ext": {
"[development]": { "[development]": {
@@ -57,7 +57,9 @@
"toggles": true, "toggles": true,
"extensibility": true, "extensibility": true,
"cds.xt.ExtensibilityService": { "cds.xt.ExtensibilityService": {
"element-prefix": ["x_"], "element-prefix": [
"x_"
],
"extension-allowlist": [ "extension-allowlist": [
{ {
"for": [ "for": [

View File

@@ -10,6 +10,6 @@ module.exports = require('@capire/bookstore/server.js')
// For didactic reasons in capire, run below services embedded // For didactic reasons in capire, run below services embedded
// TODO find a better way to switch this // TODO find a better way to switch this
if (cds.requires.multitenancy) { if (cds.requires.multitenancy) {
cds.requires.OrdersService = null delete cds.env.requires.OrdersService
cds.requires.ReviewsService = null delete cds.env.requires.ReviewsService
} }