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'
|
_schema-version: '3.1'
|
||||||
ID: capire.fiori
|
ID: capire.fiori
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
|||||||
@@ -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": [
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user