...
The example below shows both a qualified and an unqualified module:
Code Block | ||
---|---|---|
| ||
initialModules: { "/alias1": "module1", // "pathlist" is used to search for a module named module1.js "/alias2": "subdir/module2" // module file is modules/subdir/module2.js } |
When running on IBM i, initial modules require authentication by default. To allow a module to run without authentication, specify the initalModules entry like this:
Code Block | ||
---|---|---|
| ||
initialModules: { "/alias1": "module1", // Requires IBM i authentication "/alias2": { "module": "module2", "authenticate": false } // Does not require IBM i authentication } |
The modules can then be called using the following URL's respectively:
http://server:port/alias1
http://server:port/alias2
When running modules without IBM i authentication, the Profound.js Connector APIs will run as the PROFOUNDJS user profile, unless the connectorCredentials configuration option is set to specify an alternate IBM i user id/password.
...
To configure Profound.js to receive a request for a connection from the Profound UI Mobile Client, use the special name "mobile" instead of a URL alias, as follows:
Code Block | ||
---|---|---|
| ||
initialModules: { "mobile": "subdir/module" } |
...
Please note, the "initialModules" setting is not used when calling Profound.js modules from a Genie session, a 5250 green-screen session, or an IBM i Rich Display File program. Instead, the library and program name within the session is mapped to a subdirectory within modules and a JavaScript file name respectively.
Click here for information on how to modify this setting.
...