cancel
Showing results for 
Search instead for 
Did you mean: 

App router concept .

BODHISATTWA__20
Participant
0 Kudos

I have created my first basic UI5 application .

I just came across the App router configuration concept .But the app that I created does not have xs-app.json and manifest.yml .Do we need to create this app router manually for each SAP UI5 application .

Does the framework not create this automatically .

Accepted Solutions (1)

Accepted Solutions (1)

former_member746703
Participant
0 Kudos

While generating a project from template, Make sure you have selected Add deployment configuration option as yes

and then proceed with below Deployment Configuration options to add a xs-app.json file

Here ui5-local.yaml is the one that you are interpreting manifest.yml, However ui5-local.yaml is created with different syntax as it is a mta project from web IDE.

Follow this tutorials to understand more about app router: https://developers.sap.com/tutorials/cp-cf-security-xsuaa-create.html

Answers (2)

Answers (2)

former_member746703
Participant
0 Kudos

Hey bodpal2 ,

You can consume that destination by providing route details like below in xs-app.json

Here source will be matching relative path of the url, target is the actual url, and destination will be the name that your basis team has created.

    {
      "source": "^/resources/(.*)$",
      "target": "/resources/$1",
      "authenticationType": "none",
      "destination": "ui5"
    },
BODHISATTWA__20
Participant
0 Kudos

Hello deepika94

Thanks a lot for the help

So I have a destination that our basis team has configured in the cloud connector .

I want to consume this destination in my app router . So that I don't have to write the hostname in my UI5 JavaScript code .the purpose of doing do is that I can consume OData services from my on prem box

So I just wanted to understand am I going in the right direction ?

"App router" is the place where I need to give this destination name . right ?

Some guidance will be really helpful