|
|
|
@ -10,6 +10,7 @@ import ( |
|
|
|
|
"net/http" |
|
|
|
|
"net/url" |
|
|
|
|
"os" |
|
|
|
|
"path" |
|
|
|
|
"path/filepath" |
|
|
|
|
"sort" |
|
|
|
|
"strings" |
|
|
|
@ -73,7 +74,7 @@ func (hs *HTTPServer) GetPluginList(c *models.ReqContext) response.Response { |
|
|
|
|
Category: pluginDef.Category, |
|
|
|
|
Info: pluginDef.Info, |
|
|
|
|
Dependencies: pluginDef.Dependencies, |
|
|
|
|
DefaultNavUrl: pluginDef.DefaultNavURL, |
|
|
|
|
DefaultNavUrl: path.Join(hs.Cfg.AppSubURL, pluginDef.DefaultNavURL), |
|
|
|
|
State: pluginDef.State, |
|
|
|
|
Signature: pluginDef.Signature, |
|
|
|
|
SignatureType: pluginDef.SignatureType, |
|
|
|
@ -129,7 +130,7 @@ func (hs *HTTPServer) GetPluginSettingByID(c *models.ReqContext) response.Respon |
|
|
|
|
Includes: plugin.Includes, |
|
|
|
|
BaseUrl: plugin.BaseURL, |
|
|
|
|
Module: plugin.Module, |
|
|
|
|
DefaultNavUrl: plugin.DefaultNavURL, |
|
|
|
|
DefaultNavUrl: path.Join(hs.Cfg.AppSubURL, plugin.DefaultNavURL), |
|
|
|
|
State: plugin.State, |
|
|
|
|
Signature: plugin.Signature, |
|
|
|
|
SignatureType: plugin.SignatureType, |
|
|
|
|