C_CPE_13 · Question #47
You have configured an approuter by creating the xs-app.json file in the approuter folder with the following content: { ... "authenticationMethod": "route", ... }, "routes": [ { "source": "^/app/(.)$"
The correct answer is A. The files in the resources folder will be served for all requests to /app. C. All requests starting with /service will be forwarded to the CAP service.. See the full explanation below for the reasoning.
Question
You have configured an approuter by creating the xs-app.json file in the approuter folder with the following content: { ... "authenticationMethod": "route", ... }, "routes": [ { "source": "^/app/(.)$", "target": "$1", "localDir": "resources", "authenticationType": "xsuaa" }, { "source": "^/service/(.)$", "destination": "srv-binding", "authenticationType": "xsuaa" } ] } What does this routes array tell the approuter? Note: There are 2 correct answers to this question.
Options
- AThe files in the resources folder will be served for all requests to /app.
- BThe files requested for /app will be put to the resources folder.
- CAll requests starting with /service will be forwarded to the CAP service.
- DAll requests starting with /service will be targeted to the folder resources.
How the community answered
(60 responses)- A77% (46)
- B15% (9)
- D8% (5)
Community Discussion
No community discussion yet for this question.