From 0fb84df08fa99a68c51f2f6d5788011071c2bc28 Mon Sep 17 00:00:00 2001 From: Nico Schoenteich Date: Tue, 22 Aug 2023 12:47:54 +0200 Subject: [PATCH] change xsappContext to xsappConfig I believe the docs are currently wrong, as the approuter expects a property called `xsappConfig` instead of `xs-appContext`, see line 106 here: https://www.npmjs.com/package/@sap/approuter?activeTab=code Using `xsappContext` throws an error, `xsappConfig` works. --- .../extension-api-of-the-application-router-a36f409.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/30-development/extension-api-of-the-application-router-a36f409.md b/docs/30-development/extension-api-of-the-application-router-a36f409.md index c1a98938..ffc36e74 100644 --- a/docs/30-development/extension-api-of-the-application-router-a36f409.md +++ b/docs/30-development/extension-api-of-the-application-router-a36f409.md @@ -115,7 +115,7 @@ Starts the application router with the given options. - `port` - a TCP port the application router will listen to \(string, optional\) - `workingDir` - the working directory for the application router, should contain the `xs-app.json` file \(string, optional\) - `extensions` - an array of extensions, each one is an object as defined in Application Router Extensions \(optional\) - - `xsappContext` - An object representing the content which is usually put in `xs-app.json` file. If this property is present it will take precedence over the content of `xs-app.json`. + - `xsappConfig` - An object representing the content which is usually put in `xs-app.json` file. If this property is present it will take precedence over the content of `xs-app.json`. - `callback` - optional function with signature `callback(err)`. It is invoked when the application router has started or an error has occurred. If not provided and an error occurs \(for example the port is busy\), the application will abort.