minimal changes required to deploy the CAP samples in _shared db_ mode: - db: all bookshop, orders, reviews CDS models into one db instance (_shared-db_) - services: bookstore, orders, reviews - approuter with UI symlinks: - Vue: bookshop, reviews - Fiori: orders - authentification: xsuaa - messaging: Event Mesh - destinations: orders, reviews - cds: - projection OrdersNoDraft for backend direct access - event OrderChanged - deployment: mta.yml
53 lines
1.2 KiB
JSON
53 lines
1.2 KiB
JSON
{
|
|
"welcomeFile": "app/bookshop/index.html",
|
|
"routes": [
|
|
{
|
|
"source": "^/app/(.*)$",
|
|
"target": "$1",
|
|
"localDir": ".",
|
|
"cacheControl": "no-cache, no-store, must-revalidate"
|
|
},
|
|
{
|
|
"source": "^/appconfig/",
|
|
"localDir": ".",
|
|
"cacheControl": "no-cache, no-store, must-revalidate"
|
|
},
|
|
{
|
|
"source": "^/admin/(.*)$",
|
|
"target": "/admin/$1",
|
|
"destination": "bookstore-api",
|
|
"csrfProtection": true
|
|
},
|
|
{
|
|
"source": "^/browse/(.*)$",
|
|
"target": "/browse/$1",
|
|
"destination": "bookstore-api",
|
|
"csrfProtection": true
|
|
},
|
|
{
|
|
"source": "^/user/(.*)$",
|
|
"target": "/user/$1",
|
|
"destination": "bookstore-api",
|
|
"csrfProtection": true
|
|
},
|
|
{
|
|
"source": "^/odata/v4/orders/(.*)$",
|
|
"target": "/odata/v4/orders/$1",
|
|
"destination": "orders-api",
|
|
"csrfProtection": true
|
|
},
|
|
{
|
|
"source": "^/reviews/(.*)$",
|
|
"target": "/reviews/$1",
|
|
"destination": "reviews-api",
|
|
"csrfProtection": true
|
|
},
|
|
{
|
|
"source": "^(.*)$",
|
|
"target": "$1",
|
|
"localDir": ".",
|
|
"cacheControl": "no-cache, no-store, must-revalidate"
|
|
}
|
|
]
|
|
}
|