set pluginDir of apiPlugin object

This commit is contained in:
Anthony Woods 2016-01-21 11:38:27 +08:00
parent 9586493632
commit 462608517b

View File

@ -31,6 +31,8 @@ func (app *ApiPlugin) Load(decoder *json.Decoder, pluginDir string) error {
return err
}
app.PluginDir = pluginDir
ApiPlugins[app.Id] = app
return nil
}