diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-12-05 13:25:49 -0500 |
---|---|---|
committer | Chris <ccbrown112@gmail.com> | 2017-12-05 12:25:49 -0600 |
commit | 36777057f2b92bd3c0a222f2266eef2cc52f57d7 (patch) | |
tree | d3df64ec075609078c4f1bc967d07f631d834390 /web | |
parent | 154a502f8e85df2d17f5d439c24fe129ee6be3dd (diff) | |
download | chat-36777057f2b92bd3c0a222f2266eef2cc52f57d7.tar.gz chat-36777057f2b92bd3c0a222f2266eef2cc52f57d7.tar.bz2 chat-36777057f2b92bd3c0a222f2266eef2cc52f57d7.zip |
PLT-8289 Added ability to change location of client plugins (#7942)
Diffstat (limited to 'web')
-rw-r--r-- | web/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web.go b/web/web.go index 40cc4284b..321d83a75 100644 --- a/web/web.go +++ b/web/web.go @@ -26,7 +26,7 @@ func Init(api3 *api.API) { l4g.Debug("Using client directory at %v", staticDir) staticHandler := staticHandler(http.StripPrefix("/static/", http.FileServer(http.Dir(staticDir)))) - pluginHandler := pluginHandler(api3.App.Config, http.StripPrefix("/static/plugins/", http.FileServer(http.Dir(staticDir+"plugins/")))) + pluginHandler := pluginHandler(api3.App.Config, http.StripPrefix("/static/plugins/", http.FileServer(http.Dir(*api3.App.Config().PluginSettings.ClientDirectory)))) if *api3.App.Config().ServiceSettings.WebserverMode == "gzip" { staticHandler = gziphandler.GzipHandler(staticHandler) |