MM-16819 Helper function to build path to plugin asset (#13626)
Implement helper method to create a URL to the resource from a directory
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ee86413cdd
Коммит
8327e9b0ba
@@ -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.
|
||||
|
||||
Ссылка в новой задаче
Block a user