From 36777057f2b92bd3c0a222f2266eef2cc52f57d7 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 5 Dec 2017 13:25:49 -0500 Subject: PLT-8289 Added ability to change location of client plugins (#7942) --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/web.go') 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) -- cgit v1.2.3-1-g7c22