@foxpage/foxpage-plugin-ares-packages
v1.0.1
Published
foxpage server ares
Downloads
8
Readme
@foxpage/foxpage-plugin-ares
The plugin for foxpage to get resource list
Usage
Import this plugin in foxpage-server env config file
export default {
...
"plugins": ["@foxpage/foxpage-plugin-ares"],
...
}
Methods
resourceList(options:ResourceListOptions)
Search resource list from the special server with resource name
interface ResourceListOptions {
type: string; // default is 'ares', if not , then response empty array direct
name?: string; // search resource name
resourceConfig?: any; // the resource server address config, include host and path
groupConfig?: any; // the resource group's manifest file path config
appConfig?: any; // the resource group's application config
}