summaryrefslogtreecommitdiffstats
path: root/app/plugin_api.go
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2018-09-27 18:56:47 +0200
committerJesse Hallam <jesse.hallam@gmail.com>2018-09-27 12:56:47 -0400
commit15d9f10f431d6091202c262df0aec30923ade5b7 (patch)
tree5b069cd344dffff06f5f08b089d7a393baddc0a2 /app/plugin_api.go
parentd937f41233f735b8d4f3b73a0fe87668d66ea7f9 (diff)
downloadchat-15d9f10f431d6091202c262df0aec30923ade5b7.tar.gz
chat-15d9f10f431d6091202c262df0aec30923ade5b7.tar.bz2
chat-15d9f10f431d6091202c262df0aec30923ade5b7.zip
Add plugin API methode to return the current server version (#9429)
Diffstat (limited to 'app/plugin_api.go')
-rw-r--r--app/plugin_api.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/plugin_api.go b/app/plugin_api.go
index 4fc8126f1..20946cc52 100644
--- a/app/plugin_api.go
+++ b/app/plugin_api.go
@@ -83,6 +83,10 @@ func (api *PluginAPI) SaveConfig(config *model.Config) *model.AppError {
return api.app.SaveConfig(config, true)
}
+func (api *PluginAPI) GetServerVersion() string {
+ return model.CurrentVersion
+}
+
func (api *PluginAPI) CreateTeam(team *model.Team) (*model.Team, *model.AppError) {
return api.app.CreateTeam(team)
}