approuter changes
This commit is contained in:
1
app/router/bookshop
Symbolic link
1
app/router/bookshop
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../bookshop/app/vue
|
||||||
1
app/router/orders
Symbolic link
1
app/router/orders
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../orders/app/orders
|
||||||
1
app/router/reviews
Symbolic link
1
app/router/reviews
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../reviews/app/vue
|
||||||
@@ -1,10 +1,47 @@
|
|||||||
{
|
{
|
||||||
|
"welcomeFile": "app/bookshop/index.html",
|
||||||
"routes": [
|
"routes": [
|
||||||
{
|
{
|
||||||
"source": "^/(.*)$",
|
"source": "^/app/(.*)$",
|
||||||
"target": "$1",
|
"target": "$1",
|
||||||
"destination": "srv-api",
|
"localDir": ".",
|
||||||
|
"cacheControl": "no-cache, no-store, must-revalidate"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "^(.*)$",
|
||||||
|
"target": "$1",
|
||||||
|
"localDir": ".",
|
||||||
|
"cacheControl": "no-cache, no-store, must-revalidate"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "^/admin/(.*)$",
|
||||||
|
"target": "/admin/$1",
|
||||||
|
"destination": "bookstore-api",
|
||||||
"csrfProtection": true
|
"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
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
24
mta.yaml
24
mta.yaml
@@ -44,12 +44,24 @@ modules:
|
|||||||
disk-quota: 256M
|
disk-quota: 256M
|
||||||
memory: 256M
|
memory: 256M
|
||||||
requires:
|
requires:
|
||||||
- name: srv-api
|
- name: orders-api
|
||||||
group: destinations
|
group: destinations
|
||||||
properties:
|
properties:
|
||||||
name: srv-api # must be used in xs-app.json as well
|
name: orders-api
|
||||||
url: ~{srv-url}
|
url: ~{srv-url}
|
||||||
forwardAuthToken: true
|
forwardAuthToken: true
|
||||||
|
- name: reviews-api
|
||||||
|
group: destinations
|
||||||
|
properties:
|
||||||
|
name: reviews-api
|
||||||
|
url: ~{srv-url}
|
||||||
|
forwardAuthToken: true
|
||||||
|
- name: bookstore-api
|
||||||
|
group: destinations
|
||||||
|
properties:
|
||||||
|
name: bookstore-api
|
||||||
|
url: ~{srv-url}
|
||||||
|
forwardAuthToken: true
|
||||||
provides:
|
provides:
|
||||||
- name: app-api
|
- name: app-api
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
Reference in New Issue
Block a user