UI5 Middleware MIMIC userServices using configuration defined in configurations parameter
Middleware for ui5-server, enabling proxy support.
npm install ui5-middleware-userservice --save-dev
- key:
string
valuesstring
of key return json object
- Define the dependency in
$yourapp/package.json
:
"devDependencies": {
"ui5-middleware-userservice": "*"
},
"ui5": {
"dependencies": [
"ui5-middleware-userservice"
]
}
As the devDependencies are not recognized by the UI5 tooling, they need to be listed in the
ui5 > dependencies
array. In addition, once using theui5 > dependencies
array you need to list all UI5 tooling relevant dependencies.
- configure it in
$yourapp/ui5.yaml
:
server:
customMiddleware:
- name: ui5-middleware-userservice
mountPath: /services/userapi
afterMiddleware: ui5-middleware-simpleproxy
configuration:
userID: "userID"
displayName: "userID"