chore: moving app-router to .deploy folder (#822)
* chore: moving app-router and mta.yaml to .deploy folder? * reverted mta.yaml in .deploy * chore: update package-lock.json * Added guide about Micro Services with CAP * updated package-lock.json * Leaving mta.yaml in root * . * . * . * Remove Micro Services with CAP documentation
This commit is contained in:
1
.deploy/app-router/bookshop
Symbolic link
1
.deploy/app-router/bookshop
Symbolic link
@@ -0,0 +1 @@
|
||||
../../bookshop/app/vue
|
||||
1
.deploy/app-router/orders
Symbolic link
1
.deploy/app-router/orders
Symbolic link
@@ -0,0 +1 @@
|
||||
../../orders/app/orders
|
||||
9
.deploy/app-router/package.json
Normal file
9
.deploy/app-router/package.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "approuter",
|
||||
"dependencies": {
|
||||
"@sap/approuter": "^20.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node node_modules/@sap/approuter/approuter.js"
|
||||
}
|
||||
}
|
||||
1
.deploy/app-router/reviews
Symbolic link
1
.deploy/app-router/reviews
Symbolic link
@@ -0,0 +1 @@
|
||||
../../reviews/app/vue
|
||||
41
.deploy/app-router/xs-app.json
Normal file
41
.deploy/app-router/xs-app.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"welcomeFile": "app/bookshop/index.html",
|
||||
"routes": [
|
||||
{
|
||||
"source": "^/app/(.*)$",
|
||||
"target": "$1",
|
||||
"localDir": "resources",
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user