dsfix: include routes in plugin model

This commit is contained in:
Torkel Ödegaard 2017-09-04 14:09:02 +02:00
parent 9bafb108f7
commit 2789c4f1e1

View File

@ -15,8 +15,7 @@ type DataSourcePlugin struct {
BuiltIn bool `json:"builtIn,omitempty"`
Mixed bool `json:"mixed,omitempty"`
HasQueryHelp bool `json:"hasQueryHelp,omitempty"`
Routes []*AppPluginRoute `json:"-"`
Routes []*AppPluginRoute `json:"routes"`
}
func (p *DataSourcePlugin) Load(decoder *json.Decoder, pluginDir string) error {