MM-16819 Helper function to build path to plugin asset (#13626)

Implement helper method to create a URL to the resource from a directory
Этот коммит содержится в:
Ogundele Olumide
2020-03-10 12:41:29 +01:00
коммит произвёл GitHub
родитель ee86413cdd
Коммит 8327e9b0ba
4 изменённых файлов: 122 добавлений и 0 удалений

Просмотреть файл

@@ -83,6 +83,12 @@ type Helpers interface {
//
// Minimum server version: 5.18
InstallPluginFromURL(downloadURL string, replace bool) (*model.Manifest, error)
// GetPluginAssetURL builds a URL to the given asset in the assets directory.
// Use this URL to link to assets from the webapp, or for third-party integrations with your plugin.
//
// Minimum server version: 5.2
GetPluginAssetURL(pluginID, asset string) (string, error)
}
// HelpersImpl implements the helpers interface with an API that retrieves data on behalf of the plugin.