The routing configuration for an application is defined in one or more destinations.
The application router is used to serve static content, authenticate users, rewrite URLs, and forward or proxy requests to other micro services while propagating user information. The following table lists the resource files used to define routes for multi-target applications:
Application-Router Resource Files Overview
File |
Description |
Mandatory |
---|---|---|
|
The package descriptor is used by the Node.js package manager ( |
Yes |
|
The application descriptor contains the configuration used by the application router (for example, destinations for request forwarding) |
Yes |
|
A folder that contains all static resources which should be served by the application router. If no
|
No |
|
Provides the required destinations information for local development |
No |
|
Defines the configuration for one or more special User Account and Authentication (UAA) services for local development |
- |
xs-app.json
{ "source":"^/web-pages/(.*)$", "localDir":"my-static-resources" }