2024 May 07 7:22 PM - edited 2024 May 09 7:14 AM
Hi,
I have developed a sample ui5 MTA app using Stand alone app router. I am having two xs-app.json files(one from ui5 app, another from app router). I wanted to read the user information using sap-approuter-userapi service. I have maintained the route in xs-app.json file of app-router. But After deployment to CF when I run the app router URL, in Network tab I can see that user-api call is getting failed. its giving me 404-Not found. What i observed is user-api is taking the default route which is defined in xs-app.json file of ui. Even though i have defined a seperate user-api route in xs-app.json file of router, it's not considering. May i know what am i missing?
If i maintained the user-api route in xs-app.json file of ui5 app then I am getting the success and getting the data as well.
My point is why its considering the ui-xs-app.json file but not routers xs-app.json file?
please note that i have maintained user-api datasource/model at manifest.json of ui app in the correct way only.
Please see the attachements for error/ui-xs-app.json/router-xs-app.json
Thank you.
Request clarification before answering.
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.